SOA: Joining data across multiple services

前端 未结 6 1784
离开以前
离开以前 2021-01-31 11:20

Imagine we have 2 services: Product and Order. Based on my understanding of SOA, I know that each service can have its own data store (a separate database, or a group of tables

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-31 11:40

    I don't think there is any principle in SOA that services should have separate data store. In general it is actually impractical. Yes you can have product and order service and the client can do the join using web service call as you said and this may be acceptable in some scenario. But that doesn't mean that you cannot have a specific service for a client if you already know the client's behaviour and performance requirements.
    What I mean is that you should have a search service that returns orders and products with the join done in database. This is practical and would solve your business problem.

提交回复
热议问题