Why I Compute Every Appointment Slot from Scratch on Every Request
The obvious approach to appointment scheduling is a lookup table. Run a job at midnight. Generate every possible slot for the next two weeks. Store them in a slots table. When a patient asks what's available, query the table. When someone books, mark...
kingsleyonoh.hashnode.dev7 min read