© Ecky Putrady 2018
Ecky PutradyPractical Web Development with Haskellhttps://doi.org/10.1007/978-1-4842-3739-7_5

5. Databases

Ecky Putrady1 
(1)
Singapore, Singapore, Singapore
 

For most web-based applications, storing data in memory is usually not practical. The data will be wiped out when the application terminates. It’s not a rare case for an application to be terminated, for example, when you want to deploy a newer version of the same application.

Another downside of storing data in-memory is that you may not able to share the data between application instances. We sometimes need multiple application instances for availability and scalability. If one of the instances is down, we still can serve user requests by using the other instances (availability). ...

Get Practical Web Development with Haskell: Master the Essential Skills to Build Fast and Scalable Web Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.