W ouldn’t it be awesome if you could build and deploy microservices, web hooks, or functions-as-a-service with the ease that nanoscale.io provides, while also being able to run your own business logic source code written in any programming language? Now you can, with Docker Remote Endpoints.
With the latest release of nanoscale.io, you can build a microservice that executes Docker containers running programs you created in virtually any programming language or framework (e.g., Ruby, Java, PHP, Node.js, Python, GoLang, Lua, C#, etc.). Your containerized program can be invoked within your microservice either synchronously via a Proxy Endpoint, or asynchronously as a Background Job. You can use this capability to extend your microservice with new business logic written in your language of choice, or execute code that may be part of an existing monolithic application you want to reuse.
Here are the steps to execute custom function code using nanoscale.io cloud:
And you’re done! When your microservice runs, nanoscale.io will create an instance of your program in a container and execute it in our Docker Swarm, automatically managing scalability and resources to ensure it runs smoothly. If you have deployed nanoscale.io in your infrastructure, you need to set up a Docker Swarm to execute the Docker images (contact us via http://support.nanoscale.io for more information or assistance).
We provide Docker image code samples and a brief video to help you get started on how to create Docker Remote Endpoints in nanoscale.io:
Note that your containerized code will run in a “stateless” manner, only for the duration of the microservice instance, so keep in mind the following guidelines for programs to run in Docker containers:
A few additional notes on running custom code in Docker images on nanoscale.io:
Take advantage of nanoscale.io’s powerful serverless architecture while continuing to leverage your existing programming language skills to develop micoservices.
Take advantage of nanoscale.io’s powerful serverless architecture while continuing to leverage your existing programming language skills…