thanks for your comment! I know that React or Svelte is more relevant nowadays, but as I mentioned, it's not my option.
I am thinking about Websockets as well, even I don't understand how it works in depth, I'll look into that. also I might also try using gRPC instead of REST APIs since this is becoming possible. this may seem a lot, but I hope I can get may head around this in 3 months :)