code100x / job-board

100xdevs job board - temp domain attached ( will update soon )
https://job.vineet.tech
329 stars 456 forks source link

🚀 Feature: Implement Redis Caching for Job Listings to Improve Load Times #559

Open Paribesh01 opened 1 month ago

Paribesh01 commented 1 month ago

🔖 Feature description

The caching feature aims to improve the performance and responsiveness of the job board application by temporarily storing frequently accessed job listings, search results, and filter queries in a caching layer (using Redis).

🎤 Why is this feature needed ?

Implementing a caching feature in the job board application is crucial for enhancing performance and improving user experience by reducing load times for frequently accessed data.

✌️ How do you aim to achieve this?

we will start by setting up a Redis server for storing cached data. We'll adjust how we fetch job listings so that the application first checks the cache for data before going to the database. This will involve creating unique keys for the cached data based on different job filters. We’ll also implement rules for how long data stays in the cache and when it should be removed to ensure users always see up-to-date information.

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

Yes I am willing to submit a PR!

Paribesh01 commented 1 month ago

@VineeTagarwaL-code should we implement this??

Kannav02 commented 1 month ago

Hey @Paribesh01 !

I have some experience with Redis, can I help contribute to this as well

Thank you!

VineeTagarwaL-code commented 1 month ago

yeah sounds like a good thing to work on, will be easy to implement and stuff just have to think about revalidation and stuff when new job gets added will ask bhayiya about this and get back to you

Paribesh01 commented 4 weeks ago

@VineeTagarwaL-code what's the update should I start working??

VineeTagarwaL-code commented 4 weeks ago

good thinking indeed, but i want something else

we are not using tanstack query for job fetching and stuff, can you migrate our current fetching to tanstack query, it has inbuilt caching and global state solution

do it only for jobs now, no need to stress about the whole codebase

Paribesh01 commented 4 weeks ago

@VineeTagarwaL-code ok, i will start working..

Kannav02 commented 3 weeks ago

Hey @Paribesh01 , i can help on this as well if you want me to

Thank you!