2

During my project development, I found myself to the point where I realised that I need some event driven functions as some of them may be time-consuming and it would be much better to not block IO then (images processing, emails etc).

So far I have 'standard' MVC application, which is mainly REST API.

How can I integrate event driven stuff? Do I have to rebuild all controllers to fulfil Webflux architecture or it is possible to have an EventBus (but I found that it is now deprecated?) so I could just emit some events(e.g. imageUploaded) where I need it and consume them in Consumers (e.g. create thumbnail when imageUploaded?

I cannot find any clear information or complete guide as few of nice tutorials refer to classes which have been deprecated recently.

I would appreciate any help.

4

0 回答 0