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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more