Reduce payload formatter script size #4053
Labels
c/application server
This is related to the Application Server
in progress
We're working on it
scalability
This could become a problem at scale
Milestone
Summary
Replaces https://github.com/TheThingsIndustries/lorawan-stack/issues/2675
Reduce the maximum script size for payload formats to 4 KB.
Why do we need this?
Because it takes too much memory otherwise.
We will allow larger scripts via the Device Repository. We have optimizations for that planned, see https://github.com/TheThingsIndustries/lorawan-stack/issues/2264.
What is already there? What do you see now?
No limits. We already see scripts larger than 200 KB.
What is missing? What do you want to see?
Limits
How do you propose to implement this?
This applies to user defined scripts on the application and device level. This does not affect the message processor parameter field (for now), as we still allow larger values from device repository.
Setting this to a new minor as this is a somewhat breaking behavioral API change for users. Some scripts are for example already stored, and they cannot be updated or changed, and new devices and applications cannot be assigned a script that existing devices or applications are using.
How do you propose to test this?
Local testing
Can you do this yourself and submit a Pull Request?
Can review
The text was updated successfully, but these errors were encountered: