Fork me on GitHub
#off-topic
<
2020-03-23
>
Ramon Rios14:03:15

Hello everyone. I have probably a dumb question, but here it is: How can i have a relation between data in microservices? For example: I have a customer, and i have a order. I have one microservice for each entity. How do i "join the data" ?

hindol15:03:14

I am interested to know this as well. The thought that immediately came to me is, we don't want to push business logic up to the client of these services. Otherwise you microservice is a glorified database.

kulminaator06:03:23

the question is a bit abstract 🙂

kulminaator06:03:34

do you need to stitch together individual records ?

kulminaator06:03:38

or generate reports

kulminaator06:03:55

because the solutions are mighty different

kulminaator06:03:07

from our side, for individual records we send the initial request on a merry go-around trip , it picks up data at a service, then jumps to the next one , gets more data from there and so forth. the services just stick to the domain that they know about and pass on the rest of data with happy ignorance.

kulminaator06:03:55

for reporting kind of stuff we replicate the data away from the microservices, simplify it and analyze it with a complete different toolset, because making microservices to survive the workloads of reporting would be unreasonable, its not their job.

kulminaator06:03:03

i have also seen deep trees where service pull data over http from other services as an alternative to the merry go around, but the roundtrips penalty is not cool and service A knowing about a service B creates sort of a monolith out of your code this way. (in the merry go around, they dont really know by themselves, they just take work, process, and announce the results to a messaging system, to whomever is listening)

mavbozo09:03:09

there are cons for entity-based microservice. some might call it an anti-pattern https://www.michaelnygard.com/blog/2017/12/the-entity-service-antipattern/

agigao17:03:31

Who said that Apple Trackpad was an ergonomic solution? O.o

vemv10:03:05

all about how you use it... been a happy user for 5+ years most people's technique (for anything input-related) is pressing their palms against some rigid surface (the desk, part of the trackpad, etc)

vemv10:03:50

IME this is always wrong - one hovers the hands over the devices instead, moving the whole arms instead of contorting palms, fingers, wrists, etc

Michael Thurmond17:03:13

Has anyone used pingfed for authentication?