Should I use Serverless or Kubernetes or Docker Swarm?

2/13/2019

We have a product that each device will report data to our server every minute, we've sold 10K and it'll be more than 100K within the next 2 years.

Now, we just use AWS EC2(8 CPUs) + Nginx + Koa2, there're 8 instances, according to the requirement increasing, it won't be appropriate anymore.

So, I'm confused about which one should I choose?

BTW, I've been using AWS Lambda for 2 years to develop IOT issues and I used Docker 5 years ago, I think all of these three ways can solve my issue.

-- troy
aws-lambda
aws-serverless
docker
kubernetes

1 Answer

2/13/2019

Kubernetes is a great tool if you are not sure how your application is going to scale out. Using Amazon's Kubernetes engine or GCP equivalent Kubernetes engine can help you create and manage these clusters with click of few buttons and manage your application containers using Kubernetes's superior container orchestration framework.

Docker swarm , IMO , has lost to kubernetes because they did not seem to have jumped into this part of architecture soon enough and kubernetes has already created a very mature framework with great adoption in many production environments and lot of community support for any issues related to it.

Another advantage of using an Orchestration mechanism instead of AWS native services would be that you do not get into Vendor lock-in situations and you can move your stack to any other cloud platform hosting Kubernetes easily.

If you are also interested in continue to use your Serverless architecture , you might want to look at Open FAAS which can be leverage on top of your Kubernetes framework. Check this link for more details.

-- fatcook
Source: StackOverflow