
- What does DATA INTENSIVE APPLICATIONS mean?
- Applications where the biggest challenge is to STORE data, MANAGE data and QUICKLY ACCESS the data.
- What is common between applications like Swiggy, IRCTC, Paytm? — Data
- Data is the crucial part when designing intensive applications
- What operations are made on this data?
- Store the data (your order details get stored in DB)
- Read the data (your profile information is read from DB)
- Generate new data (when you create new order, the order data is generated)
- Less users — it’s fine to store the data in spreadsheets too
- More users (crores of users) — It becomes a problem to manage huge number of users
- Single Machine vs Multiple Machines
- While you can definitely use single machine if user traffic is not much, it becomes a problem when the users count goes up heavily. Database will suffer under load and is prone to failure and downtime.
- Hence, when user traffic is huge, lets say crores of orders per day, it is good to go for multiple machines approach and spread the traffic among them.
- Building Blocks of Data Intensive Applications
- Databases: Where data is stored permanently. No database is good or bad. Each has it’s own use case.
- Caches: Helps to store data which is repeatedly accessed
- Search Indexes: Helps to read data quickly, but it slows down write and update operations
- Stream Processing: To handle real-time events like streaming live video in Zoom, sending notification immediately after payment, etc.
- Batch Processing: Processing multiple transactions at once. This is slightly slow.
Frontend vs Backend

- To understand frontend and backend, let’s take the example of restaurant
- FRONTEND
- It is something which user can see
- In restaurant example — entry, menu card, tables, etc. are the frontend
- Frontend is the code that runs in the browser or mobile app — buttons, forms, UI screens, etc.
- Frontend handles data of only one user at a time
- BACKEND
- It is something which user cannot directly see
- In restaurant example — chef making the food, billing system, inventory management
- Backend is the code that runs on the server, fetches the data, handles business logic
- Backend handles data of huge number of users at once, leading to data challenges
- HTTP — Hypertext Transfer Protocol
- Backend is accessible through this protocol
- User makes the request, the backend server handles it and sends back the response — All this happens through the internet
- Stateless Backend
- In a stateless backend, the server does not remember the state of request once it is handled.
- If you want the information to be persisted between requests, then a DATABASE is needed.
OLTP and OLAP