Answer the question
In order to leave comments, you need to log in
How to take the generation of letters into a separate service?
Good afternoon.
There is a system based on Java stack. Inside, various mail notifications are generated for different events.
The requirements for form and data from these messages are growing. At the moment, letters are generated in the place where the event occurred. What is not good.
I would like to move the generation of letters to a separate service and generate letters from templates. And in the service to throw a message.
Total: ActiveMQ+Freemaker/Thymeleaf/Velocity. How good is this solution?
Answer the question
In order to leave comments, you need to log in
It’s not entirely clear, to be honest, are you asking for approval here?
According to the subject, the use of queues, yes, is a good approach for the interaction of services, and the use of template engines is good when generating letters as well.
What to take? Yes, what the eye will fall on, here the advice is largely subjective, so evaluate the docks / community and go ahead)
Just be more careful when setting up the broker itself so that some broken message does not wedge the entire queue in the end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question