Camel and load balancer -
i using camel implement route, load data db , apply processing on before producing results saved in db again. part of web application.
my problem war going deployed load balancer 2 servers. there 2 camel contexts 2 routes performing same processing on same db.
i have case same record being processed 2 routes. how handle problem prevent routes performing same job twice?
if need have setup each server might receive same record - need idempotent route. , need make sure idempotent repository same between machines. using database repository easy option. if not have database, hazelcast repo might option.
what can issue determine unique in records - such order number or customer + date/time or increasing transaction id number.
Comments
Post a Comment