Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design / pattern question regarding the use case #8

Open
sebastienblanc opened this issue Sep 1, 2016 · 1 comment
Open

Design / pattern question regarding the use case #8

sebastienblanc opened this issue Sep 1, 2016 · 1 comment
Labels

Comments

@sebastienblanc
Copy link
Collaborator

I have the following architecture :

  • A bookstore service where you create books and authors.
  • A SellingPoint service that has the current model :
    • A SellingPoint entity with name, longitude , latitude , and a Set<Book>
    • Book is an entity duplicated from the bookstore service and simplified , it contains just one attribute isbn

Now when a the bookstore service creates a book, I would like to send a message/call an endpoint to the SellingPoint service to add the book entry there as well (and automatically , see it as a sort of sync) .

What is the best way to do it ?

  1. Call an endpoint on the SellingPoint service on JPA creation in the bookstore service : this one is easy to implement
  2. But maybe using Camel/activemq would be a nice thing to show , @cmoulliard wdyt ?
@cmoulliard
Copy link
Member

We could use Camel to expose the Selling endpoint as Rest Service but ... remember what we discussed this Monday. Due to the time constraint for the delivery - 19/09, we have decided to postpone the inclusion of integration stuff !

To answer to your question, we could also easily implement that using camel ate the condition that the camel-jpa fraction works well. I haven't yet tested it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants