Give compute, storage, and databases separate jobs
Map website requests, downloadable files, and booking records to the resources that handle them.
Compute runs instructions
Compute executes instructions. A website might use a virtual machine, container, or managed runtime to check a booking and calculate how many seats are left. These choices affect how the code runs and what the team maintains.
An app process can stop or restart. Keep records the library needs tomorrow in persistent storage with a recovery plan. A working copy in memory is useful while serving a request.
Store blobs and records where they fit
Object storage holds items such as PDFs, photos, and archives along with identifying information. The app can fetch an item by name or key. A database helps the app look up and change structured records, such as bookings by event and date.
A database may be able to store files and a storage service may store data files. Choose based on how the app uses the data. Regularly filtering a changing list of bookings calls for different behavior than downloading an opening-hours PDF.
Try it yourself
Assign a role to the book-cover image, the table of events, and the rule that limits reservations to two per person.
See the reasoning
The image belongs in storage. The events are database records. Compute runs the rule and reads and updates records to enforce it.
Check your understanding
Choose one answer per question to see the explanation. 0 of 3 answered.