View Full Version : message size limitations?
10-19-2010, 12:57 PM
Hi, are there any limitations on the message sizes or the number of attributes that can be sent in Es5. As binary interface is the default, there may not be any but just want to be sure.
10-19-2010, 01:09 PM
Yes there is a limit. For one thing, if you try to send something that is huge, you are more likely to have a packet dropped and have to be resent. For another, when we encode the EsObject for the message, we have to specify a lot of sizes, and even using integers on everything (instead of Longs) wastes too many bytes. I strongly suggest that you add no more than 256 attributes to a single EsObject (but you can certainly have one of them be an EsObject array, so you can pack a LOT of attributes using nested EsObjects), and keep any String or array length below 32K. The total message size in bytes will need to be less than the value that you set using the ES Admin for max message bytes, which since it is configurable you may adjust but there is still an upper limit. The default size is a nice size for packets (roughly 8K).
Powered by vBulletin® Version 4.1.6 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.