Questions tagged [event-stream]

This tag is for questions relating to event streams in HTTP. Event streams are an easy way for a server to have a continuous connection with the client and send data back and forth.

137 questions
1
vote
0 answers

Promise around event-stream mapSync() not working

Currently i am trying to create a CSV reader that can handle very large CSV files. I chose for a streaming implementation with the event-stream NPM package. I have created a function getNextp() that should return a promise and give me the next piece…
wiegvlieg
  • 11
  • 2
1
vote
0 answers

Heap memory leak pptxgenjs

Currently I am creating a ppt file using pptxgenjs and export it. the pptexporter file contain many other function to get assets and string etc. but there is always memory leak when I use large assets such as images and videos size bigger than…
feiiiiii
  • 1,480
  • 1
  • 12
  • 27
1
vote
1 answer

Confuse Library Server Sent Event for Android Client Nginx Push Stream

Our server is used to Nginx as webserver and add compile module of nginx_push_stream. Before used to push stream had used to Restful then changed to Websocket but WebSocket sometimes lost when the client or server had small bandwidth. In the 2019…
Subhanshuja
  • 390
  • 1
  • 3
  • 20
1
vote
0 answers

Partial event sourced application, and roadmap from regular toward event source application

I building an Application using the Event Sourcing model, and there is some entities that I do not see any benefits from memorizing their history in event streams, such as the users entity. Is it good to have parts of my system event sourced, while…
adnanmuttaleb
  • 3,388
  • 1
  • 29
  • 46
1
vote
0 answers

Create a API with content type text/event-stream by Scalatra

I am creating an SSE simple example, I create an API with Scalatra and get responses by the interval with the header text/event-stream. It looks like Scalatra doesn't support this type. This is my simple code, get("/hello") { val headers =…
Wilson Ho
  • 372
  • 5
  • 18
1
vote
2 answers

loopback event stream causing race condition

My overall goal is to watch my database for any changes and automatically broadcast those changes to any user connected to my website. The problem that I am seeing is that I have an action triggering a post request to my database and then the event…
brian c
  • 23
  • 7
1
vote
2 answers

How to stream events with GCP platform?

I am looking into building a simple solution where producer services push events to a message queue and then have a streaming service make those available through gRPC streaming API. Cloud Pub/Sub seems well suited for the job however scaling the…
1
vote
0 answers

Node.js Updating file stored on S3 using Streams

What I want to do is read a file from S3 - update some information - upload it back, all using streams, without having to create a copy of the file on the server. I used the event-streams library for parsing the file like this:(Updated with solution…
doglover1337
  • 146
  • 4
  • 18
1
vote
0 answers

Django server sent event not triggering HTML5 listener

I need a django template to refresh when an asynchronous event is detected on the server. I implemented this successfully using django-channels on my development server. However, the server I need to deploy to (pythonanywhere.com) doesn't support…
1
vote
2 answers

Should latest event version be queried in event sourcing?

I am developing a simple DDD + Event sourcing based app for educational purposes. In order to set event version before storing to event store I should query event store but my gut tells that this is wrong because it causes concurrency issues. Am I…
SHM
  • 1,896
  • 19
  • 48
1
vote
1 answer

Maximum stack size exceeded - event-stream

Having this piece of code: function query(url, dbName, collection, filter, requestId) { MongoClient.connect(url, {native_parser:true, authSource:'admin'}, function(err, client) { if (err) { throw err; } const…
Sergiu
  • 2,502
  • 6
  • 35
  • 57
1
vote
1 answer

Get index from Node event stream split()

I'm building a Node script using event-stream that iterates through a file line-by-line via the split() method and I would like to reference the line number in the resulting output. Is this possible in my implementation? ``` var s =…
Lounge9
  • 1,213
  • 11
  • 22
1
vote
1 answer

Loopback event stream track changes in a model on server side

I have stuck in a situation that I want to sync two mongoDB one is at local machine and second is at the remote (on a mlab sandbox). for sync I am doing as: first I dump the collection which have changes using mongodump next by using mongorestore I…
1
vote
0 answers

Realtime UI synchronization from event streams

I'm building a single-page web application and I'm planning on leveraging a server-side event stream to keep the client up to date with changes. While thinking this through there is a concurrency scenario that I thought of and I'm not sure if the…
plalx
  • 42,889
  • 6
  • 74
  • 90
1
vote
1 answer

Close first eventsource on second one's onopen method

I'm working on an app which uses the window.EventSource to stream data's on to a table view. Since there is a restriction on the max-connections-per-server limit as 6, i'm trying to have one EventSource object at a given point of time, so…
Sai
  • 1,790
  • 5
  • 29
  • 51