I have wrapped one of the functions using @Async in my Spring boot application, where I persist the payload in DB as follows:
@Async
@Component clas