Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Microservices Cross-Service Queries Example Use Case – Get Item with Details

Pragya Keshap answered on February 3, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • Microservices Cross-Service Queries
  • Microservices Cross-Service Queries Chain Queries – Get Order with All Details
  • Microservice pattern - Crosscutting concern

  • Microservices Cross-Service Queries Example Use Case – Get Item with Details

    0

    Each microservice queries other microservices for data when it’s needed.

    This is the instinctive choice for developers from a monolithic application background. The developer replaces local method calls with remote calls (e.g. REST).

    Advantages:

    Live data

    The data you get back is the current state of the supplying microservice. However, you still have to deal with eventual-consistency and the lack of transaction isolation between microservices.

    Either it works or it doesn’t

    Failures are associated with a given request; this makes them easier to identify and resolve. Unfortunately, stack-traces are not passed between microservices. You have to setup distributed tracing to get easy access to the root cause (see OpenTracing).

    There are no additional artifacts to release/deploy/run

    The integration is contained within the existing microservices.

    Code generation support

    You can generally define your remote API specification (e.g. in OpenAPI specification) then code generate the model, server and client from it.

    https://medium.com/@john_freeman/querying-data-across-microservices-8d7a4667668a

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 03 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.