This is my first time trying out service oriented programming and I am confused about some specifics when it comes to the design pattern. I want to make a liquor storage server using Spring framework that will have following functionalities divided for an admin(A) and a basic user(U):
- returning list of products (U,A)
- updating the amount of products(U)
- updating all the information about the product(A)
- making an order(U)
- returning a history of orders that the user made himself(U)
- returning list of orders made by all users(A)
(I am mentioning authorizations in case that there is a specific design pattern for them)
Now the problem is that I'm not sure how should i organize my services. This is an idea (sorry for the scuffed picture): 
I am not sure if the functionalities should all be different services or organized in product and order services like in the picture, also should services return information directly to the app or through the discovery service?
If you see anything that is a good practice to add i would appreciate if you could recommend a link or docummentation.
Aucun commentaire:
Enregistrer un commentaire