To add onto this, anywhere that SQL is called to add or retrieve info from the datbase is blocking. Recommendations are to put it in a threadpoolexecutor or the default executor. It may also be worthwhile setting up a task to handle this with scheduled intervals and a local cache instead of updating on the event itself.
To add onto this, anywhere that SQL is called to add or retrieve info from the datbase is blocking. Recommendations are to put it in a threadpoolexecutor or the default executor. It may also be worthwhile setting up a task to handle this with scheduled intervals and a local cache instead of updating on the event itself.