Open klucar opened 4 years ago
Good to hear from you! Thank you for your observations. Are you working this ticket?
Hey there! I'm not working it yet.
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.
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.