mean I have to call <index>/_bulk api whenever a message is received from the server?
No. Create a buffer that can hold 5000 items in your application. read 5000 entries from the _socket_ server and once you have that many records, Put them all in elasticsearch using the bulk endpoint
Обсуждают сегодня