I just finished my first Hydra non-visual plugin in .NET to be called from a Delphi host. The plugin will be used to call the AWS SDK for .NET from my Delphi RO server. It is working well so far, but I have two questions before I go live with this plugin:
Should I create the Module Manager in my ServerDataModule, and load the module + create the plugin instance once, when the server starts? Is this going to work ok when called from multiple RO services simultaneously, which are started in multiple different threads (as they are RO services)? Or should I create a module+plugin instance once every time the RO service is called?
If my host is a Delphi VCL host, is it absolutely necessary to build with runtime packages? I had forgotten about this, and the test app is working fine without runtime packages, as well as the appserver (though I did have quite a bit of issues regarding passing arrays from Delphi to .NET but I have these regardless of whether I use runtime packages or not, and I was able to work around these issues). So I’m wondering if, when using a VCL host with a .NET non-visual plugin, it is necessary to use runtime packages? My RO/DA server has never used runtime packages, and I’m a bit wary to start using them in production, .
Thanks in advance,