This week's book giveaway is in the Python forum.
We're giving away four copies of Python Continuous Integration and Delivery and have Moritz Lenz on-line!
See this thread for details.
Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

How do I keep single responsibility of these 3 microservices?  RSS feed

 
Ranch Hand
Posts: 1045
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a functionality where there is a call to external API , there is call to database table and there is computation using these two.

Microservice 1: Calls the external API (single responsibility).
Microservice 2: Calls the database table (single responsibility).

Microservice 3: Has to perform computation based on the above 2 so it will have to 1)  call microservice 1 and 2) microservice 2 to get the results and then 3) use this to do computation. In such a case it becomes multi responsibility instead of single responsibility as it is doing 3 things.

How to keep it single responsibility in such case?
 
brevity is the soul of wit - shakepeare. Tiny ad:
ScroogeXHTML 8.2 - easy to use RTF to HTML converter library
https://coderanch.com/t/707504/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!