Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 534 Bytes

File metadata and controls

25 lines (21 loc) · 534 Bytes

App Side Joins

  • Docs stored, indexed, and searched individually - application joins the docs
  • Get the order by id first:
    GET http://localhost:9200/ordering/_doc/1
    {
      "id": "1",
      "placedOn": "2016-10-17T13:03:30.830Z",
      "customerId": "123"
    }
    
  • Get the customer using data from the order customerId second:
    GET http://localhost:9200/customers/_doc/123
    {
      "id": "123",
      "firstName": "John",
      "lastName": "Smith"
    }
    
  • "Join" the data on the application layer for consumption