Size limit to an environment variable?

I am storing some state data about calls in a handful of environment (and global) variables.

Is there a limit to how much data (char limit/etc) can be stored in an environment variable?

So far I have not hit a hard limit, though loading/viewing variable sets shows some lag. I’m over 200KB already.

I realize I will need a better solution (db) eventually… however using env variables has been really easy and handy, and lets me store the state in the environment where it came from, and segments it there already (helping to make smaller data sets somewhat).

Thanks

3 Likes