Streaming vs Json #198
Replies: 1 comment
-
What update? If you mean reading data from database frequently to check the changes, you should avoid to do that because it needs to send the request with header and payload and get the response header and payload every time which can cost your data usage and unnecessary data was read. The request header included the auth token. The legacy token size is relatively small, only 40 bytes, result in smallest header to send, while the size of id token generated using Email/Password is quite large, approx. 900 bytes. result in larger header to send. With stream, only event data payload (real changes data) sent from server after successfully performing the stream request. |
Beta Was this translation helpful? Give feedback.
-
So I'm updating a node every 15 seconds with 500 bytes worth of Json and was wondering if it would be more efficient (memory wise / network usage wise) to just stream the data instead. What do you think?
Beta Was this translation helpful? Give feedback.
All reactions