camicroscope / Caracal

Conslidated Backend, Auth, and Security Services for caMicroscope
GNU General Public License v3.0
15 stars 95 forks source link

Cache Middleware added to caracal.js #174

Closed gbengaoluwadahunsi closed 2 months ago

gbengaoluwadahunsi commented 7 months ago

Summary I have implemented a new middleware in the application to enhance the server-side caching mechanism. This middleware will optimize response times and reduce server load by caching frequently accessed data.

Motivation The motivation behind this enhancement is to improve the overall performance and scalability of the application. By implementing server-side caching, we aim to reduce the response time for requests, enhance the user experience, and minimize server resource utilization.

Testing The new middleware has been thoroughly tested in various scenarios to ensure its effectiveness and compatibility with the existing application architecture. Testing involved simulating different load conditions and monitoring the caching behavior to validate its performance benefits.

gbengaoluwadahunsi commented 7 months ago

Hello @birm ,

I have added a middleware for caching via the server-side rendering, I proceed to use Redis or service workers for the client-side caching.

Let me know what you think about that, thanks.