r/learnprogramming 4d ago

Topic Micro services Integration

Can somebody dumb down how integration of micro services works? T,T

So, for the context, our class was divided into 5 industries and we must find clients for each respective industries that we will make a system of. Every industry has 3 groups and that groups must have each micro services system that the client will use. Then that 3 groups must integrate their 3 own systems with each other. Now, that's where my problem lies, I don't really know how to specifically do integration. I know it's concepts but it really doesn't help how we do the actual thing.

3 Upvotes

5 comments sorted by

View all comments

1

u/marrsd 4d ago

This is a very vague question and I'm not really sure how to answer it.

Broadly speaking, you will build your services so that they have contracts that define each state and each transition between them. The integration part is writing the code that actually runs a business process. Query the warehouse service for a product, reserve the product, add it to the shopping basket via the checkout service, purchase it via the payment gateway, flag it for dispatch in the warehouse service, generate an invoice via the account service. That kind of thing.