I'm developing a DApp, and I need some logic to handle events. This shouldn't be done in the Frontend of the application, right? So what would a good approach look like. I thought about a Java-Backend (if thats even possible), how would I connect it to the Frontend in a good way. Also if I would put my logic in the same project as my frontend and deploy it on a domain, how would I be safe, that no access to the backend is granted.
Greetings