kiebitz-oss / services

The Kiebitz Backend Services. Still a work-in-progess, use with care!
https://kiebitz.eu
GNU Affero General Public License v3.0
0 stars 0 forks source link

Improve appointment fetching #8

Open adewes opened 2 years ago

adewes commented 2 years ago

Currently the API fetches relevant appointments for users with a rather naive search process. We should improve this to make the system ready to process a larger number of advertised appointments (10.000-100.000).

adewes commented 2 years ago

We can add caching to the getAppointmentsByZipCode endpoint, either on the level of the API or in the load balancer. In general, precomputed appointments by zip code can be stored in Redis and e.g. only recomputed every 10 seconds, which would dramatically reduce the load on the database as that endpoint is the most widely used one.