I am developing an application, and want to implement a certain functionality. I find that this can be done in the stack I am using, however it's hard to implement. I can create a microservice with this functionality embedded using another technology, and use it for that particular aspect of my overall application. This is much easier than the first option.
Which option would normally overall be cheaper, when actually deploying and scaling the application, not including the cost and time of actually developing the application. Thanks.