NationalSecurityAgency / datawave

DataWave is an ingest/query framework that leverages Apache Accumulo to provide fast, secure data access.
https://code.nsa.gov/datawave
Apache License 2.0
555 stars 239 forks source link

Design new websocket interface #835

Open klucar opened 4 years ago

klucar commented 4 years ago

The current websocket interface has the server close the websocket after the query results are sent to the client. By doing that, the websocket is not adding any functionality over the REST api. It is actually just slowing down communications by having to promote the http connection to websocket before a query can be made.

A websocket interface with a two-way asynchronous message design would enable a modern user interface for datawave.

ivakegg commented 4 years ago

Good to hear from you! Thank you for your observations. Are you working this ticket?

klucar commented 4 years ago

Hey there! I'm not working it yet.

cmitchell commented 2 years ago

I have also noticed that no results are sent until we have an entire page of results. This implementation will send the results as they are available and the client may make the decision to store and batch them in pages, or to display them right away as they are received.