compliantkubernetes icon indicating copy to clipboard operation
compliantkubernetes copied to clipboard

Notification system add to user demo

Open llarsson opened this issue 3 years ago • 4 comments

@cristiklein and I discussed that we, from time to time, get customer requests for how to do app and web page notifications in the browser.

While it sounds simple enough, it is not at all obvious how one does that, given the Ingress that is in the way, and whether support for web sockets is readily available, etc.

Time permitting, we could update the demo application so that it pushes out events to clients using some popular notification API.

This task requires investigating how all this stuff works, what libraries are out there, and how we can make it all work nicely in Compliant Kubernetes. So it's quite a feat!

llarsson avatar Jan 14 '22 10:01 llarsson

@llarsson The team has asked for adding more context to issues they work on. Can you edit the issue to add context here?

cristiklein avatar May 10 '22 12:05 cristiklein

Thanks, CK! Yeah, this came out of one of our meetings and none of us filled in the details about what we discussed. :joy:

llarsson avatar May 20 '22 08:05 llarsson

So, "notifications" can mean two things:

  1. That annoying thing where a web page or app buzzes you, although the web page or app itself is closed.
  2. That useful things where the web page or app is updated real-time, as determined by the server.

No 1 works via the Push API and does not need anything special from the Ingress. In fact, the "magic" happens in the backend, which needs to talk to a push service. Push services are hard-coded in the browser's code. Google Chrome has theirs and Mozilla has theirs.

No 2 would, indeed, work via WebSockets which works out-of-the-box with the Ingress Controller we use.

Anything else we need to investigate @llarsson ?

cristiklein avatar May 20 '22 12:05 cristiklein

This was not about an investigation, but rather, it would be about coding the second option.

Requests from this have slowed down, so I wouldn't prioritize it very highly.

llarsson avatar May 23 '22 13:05 llarsson