title: Best way to "stream" Google Pub/Sub messages directly to frontend? Server-sent events?
body: <p>First things first: My Pub/Sub knowledge is basic, my server-sent event knowledge even below that.</p>
  
  <p>What I am wondering is how to build a single page application (with 1-10 concurrent users, something small and internal) that can (near-)instantly show (not write just read) Pub/Sub messages as they are coming in. I've so far been able to botch together a Java Servlet that starts an asynchronous pull and writes to an EventSource in the frontend, however I'm asking myself whether that is complete nonsense* to begin with and whether there is something else out there that I should be looking into (I guess I'm asking for the right keywords).</p>
  
  <p>* it works 1/10 times and only locally right now.</p>
  
  <p>Any CONSTRUCTIVE tips are appreciated. </p>