I am developing a web-app, currently the application is being developed in both NodeJs and in ASP Net. We are structuring the application in micro-services. Lets say we have a service that calls some functions in a dll and we have the possibility to choose which dll to call the functions from, but the client wants to make that dynamic, so he can upload a .dll in the front-end and then the application must transfer that to a directory which the micro-service scans and add that new .dll to the list of dlls of which we can use, the dlls have the same Interface so the only thing we change is the .dll we choose.
I have some doubts about whether this is a good idea regarding security and some implementations problems such as the downtime.
Specifically that micro service is the center of the application, and the functions that are run take several seconds or even minutes to complete, so we are going to implement a task scheduler that receives a new task from a specific user, and then executes the given function from the dll and returns the result.