Hi,
We wanted to confirm if its okay to user a single custom code jar to accomplish multiple operations like add, fetch, update, delete.
We have about 30-35 different operations to be performed for our app and below is what we are doing:
We have a single custom code jar deployed which takes a request JSON that will have a key with name "requestCode", this will identify the operation to be performed. For eg, requestCode = 1 to get the data, requestCode = 2 to add the data, and so on.
Then we have a switch statement on the requestCode which calls the appropriate method depending on the requestCode.
Is this approach okay considering the concurrency of operations in production environment?