79385067

Date: 2025-01-24 17:00:54
Score: 1.5
Natty:
Report link

Just if anyone stumbles upon a similar issue: I accepted Alexis Gatuingt as best answer, even though skdishansachin gave very helpful info concerning broadcasting.

After reading through requirements and counterweighting different arguments this was my evaluation:

So in my specific usecase, long-polling is ugly and I want to avoid network overhead specially if userbase grows. Broadcasting and reverb would force to open up a pandoras box with server config, eventually requiring more server resources, etc. and on long term force much faster to have specialist in that field configuring the server when the userbase grows quickly and probably enforce to upgrade server resources (hosting cost).

So with that in mind, and on that specific use case (long running calculation process which is triggered consciusly by user which probably makes page changes while it updates, low payload, few of these UX cases) Inertia middleware and Vue-router guard will my momentary way to go, nevertheless in mind, that it's not 100% clean from architectural perspective, and if more similar UX cases are required, websockets and broadcasting would become more senseful (less calculation time between page changes, clean UX updates which do not require page changes, clean channel for all such UX updates which can be handled more centrally and do not charge the payload between any request). So as long as these status updates, messages alerts do not raise page load times too high, it will be my way to go, until websockets and broadcasting become necessary.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Canelo Digital