DEV Community

brlikhon
brlikhon

Posted on

2 1

Caching Web and Databases Part-1

Caching
Let's understand caching with an example, we need to go to store to buy necessary things which is 30 minutes away from home and but usually we buy a lot of things and stoke them. For frequent uses when we need them we don't need to travel 30 minutes to store to buy it again. Here we are doing caching using our home as a temporary storage for frequent access.
Home --> Store (30 minutes)
Home --> Stocked Items (2 minutes)
Now, in technical term when we keep some data in temporary storage so that quickly we can retrieve it for frequent uses. There can be certain types of data that can be cached and few of the examples include frequently accessed data the static data and the data that requires quite slow and expensive queries. I will be discussing about the caching of web session state and the databases let's start with the database caching.

I have a special offer for you to enjoy some summer savings - a $500 credit to play with Redis Enterprise this summer. You can redeem this coupon for any paid plan!
Follow these steps to use the coupon. Terms and conditions apply*:
Register or Login to the app
Add a payment method: Billing and Payments > Payment methods
Add a payment method: Billing and Payments > Credits >Use coupon SUMMER500
Create any paid subscription
Use code SUMMER500

Terms and conditions:

Offer expires July 31, 2022
Use with a new subscription only
Cannot combine with any other coupon offer
Must use all $500 in two months
Image description

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay