Thanks for your real-time examples, all your videos are very much useful for real time implementation of different micro service concept. Keep uploading such kind of informative videos
@@JavaTechSolutions one more doubt is @version annotation and version field needed if we are using Pessimistic locking? Can we remove that field and annotation in entity?
Hello sir, I didn't understand one thing : How ticket was saved in db with "BusId" ? Because In the code busDetails was not saved in ticket object.. Yes.. ticket was added in Bus entity , but still this Bus entity was not saved.. Pls suggest
Its depends. Looking mechanism should be used if you want to maintain the data consistency then locking should be used. Even if same data used by multiple thread then locking can be used. Regarding saga design pattern is used based on scenario. It will be used if we want to maintained transaction in multiple microservices.