News for hackers. Stuff that matters.
Re:Ask HN: How are you solving the microservices data problem? by sprobertson on Friday February 17, 2017 @03:22PM (#13671382)
I don't use a database per service, rather a single database service which others can query. Sometimes there might be some caching layer in another service, or if the data source is unique enough (eg elasticsearch) it gets its own service.

PS I'm apparently a buffoon and use microservices for even the most trivial side project

Re:Ask HN: How are you solving the microservices data problem? by johnnycarcin on Friday February 17, 2017 @06:00PM (#13672461)
I was talking with a group yesterday and that idea came up (or something similar). The idea was to have a data microservice for writes and then let the various microservices do reads from their specific db. This data microservice would handle writing data out across the various data sources so nobody else had to know about it, they just knew to send writes to that service. Is that sort of what you are doing?
Re:Ask HN: How are you solving the microservices data problem? by sprobertson on Saturday February 18, 2017 @02:30AM (#13673954)
Even simpler, just one service for both reads and writes. It acts as a CRUD API for the whole system. Other services are for more distinct functions like sending notifications, interacting with an API, or running some specific process.