Architecture
Motia Cloud is a serverless platform. Some stuff that work locally may not work in the cloud.
Bundle sizes
Motia Cloud currently has limited bundle sizes to 100MB, we're actively working on increasing this limit to be higher than 1GB.
Payload size on events
When sending events to topics, the data should not have more than 4KB.
- Make sure you're not sending files as Base64 in the content of the event.
- Make sure payloads you send are not too large, prefer storing in state and fetch it on the other steps.
Using Local Files
Sometimes we need toa use local files when creating our backend logic. For example, creating templates. Running binary files, etc. To do this, we can add them to steps as static files.
Make sure you follow the instructions in Deployments page.
Runtime timeouts
Motia Cloud currently has limited runtime timeouts:
- 15 minutes for Event and Cron Steps.
- 30 seconds for API Steps.
Reserved environment variables
Motia Cloud is currently deployed to Amazon Web Services. Which means that there are some environment variables that are reserved for internal use. If you need to use one of these variables, make sure to add a different name.
Limitations
- 100MB bundle size
- 4KB payload size on events
- 15 minutes runtime timeout for Event and Cron Steps
- 30 seconds runtime timeout for API Steps
Troubleshooting build outputs
Make sure you follow the instructions in Deployments page.