DEV Community

Discussion on: Postgres Is Underrated—It Handles More than You Think

Collapse
mostlyjason profile image
Jason Skowronski Author

Thanks I'm glad enjoyed it! The Hibernate second level cache lives on your application server, whereas the postgresql cache lives on the database of course. This matters because it's faster to retrieve or update data already stored on your application server. It reduces network and database load by removing duplicate queries and batching writes. This is great for applications with many reads and infrequent writes, or cases where eventual consistency on writes is acceptable.