Dynamic state per instance of module?

Is it possible to use cdktf to create a remote state config per instance of a module?

We have a module that we call hundreds of times, which contains n subresources. This is brutal for speed because the state is all shared and recalculated for everything.

Possible to do this cdktf? Or some other way to do this (other than putting each config into a separate folder).

In cdktf each stack has its own Terraform state. You could try creating hundreds of stacks dynamically that each reference the module once. I don’t believe anyone has tried that scale, so you may run into some issues, but potentially anything you find could be improved.