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

How can we manage these cross-services queries ?

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

Contents


More Related Answers

  • What is Cross-Site Request Forgery attack?
  • Problem: Cross-Service Queries and Write Commands on Distributed Scaled Databases
  • Enabling Cross Origin Requests
  • Enable CORS (Cross Origin Resource Sharing)

  • How can we manage these cross-services queries ?

    0

    Direct HTTP Communication

    Not a good solution that makes coupling each microservices, and loose power of microservices independency.

    ▪ Async Communication

    The best practice is reducing inter-service communication as much as possible and use async communication. Can't reduce these internal communications due to customer requirement.

    ▪ Client send query request to internal microservices to accumulate some data.

    ▪ Those query request wait immediate response so we can't proceed with async communication.

    ▪ Transient errors, Network congestion or any overloaded microservice can result in long-running and failed operations.

    ▪ Materialized View Pattern

    Reduce inter-service communication and provide sync response.

    https://medium.com/design-microservices-architecture-with-patterns/microservices-data-management-when-performing-queries-between-services-42896a733567

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Tags: whatever
    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.