Ability to Check Data Limit of Data without Attempting External Calls

As a Roblox developer, it is currently too hard to determine if data can be sent to external APIs if there is a data limit in bytes instead of characters. The data limits are clearly documented in terms of their max data in bytes, but string length doesn’t properly correlate to how many bytes they use because of how they get encoded. There should be a way to determine if a payload of data satisfies the data limit for an external API call without having to worry about Roblox’s internal implementation.

For a use case, Nexus Data Store sends packets to set data if the set data is small enough, or sends packets to fetch the data if it is too large. Additionally, it also groups together packets to send out every second to prevent sending out dozens of short messages. In the test production place (Innovation Security Training Facility), data is sometimes not sent because of the string length being small but Roblox’s encoding makes the data unable to be sent.

10 Likes