By vicrenlopez
Good Evening!, well it’s my first experience developing at the backend, my API is almost ready, but at the moment I don’t know which plan of the wide catalogue of DigitalOcean should I choose.
The API will be mainly consumed by a suite of mobile apps,the user’s mobile app is kind of like Uber Eats, so it will load product information, categories, pictures, opinions and that stuff that is some light. But in the part of track where your delivery-man it will require to do a lot of petitions every few seconds.
That’s the information that I have, I don’t even know how RAM or CPU it could use. Knowing that, I would like to know which DigitalOcean plan is just for me.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
@vicrenlopez First, you’ll need to determine the memory and CPU required for your service. One can use top or htop to determine this information.
Second, if you’re using Docker and Kubernetes, you can use a tool like wrk, Locust, Loader, or other to perform load testing of your API endpoint. Thus, you can test with a load of 1K, 5K, and so on until you reach your desired value of 30K. Please do allow each test to run for about ~10 minutes.
Finally, you can use the prior data to determine what DO resources you’ll need for your production deployment. Furthermore, I would recommend taking a look into DO auto-scaler (i.e. auto create/delete a node based on overall memory and CPU). Also, I recommend setting requests and limits for the CPU and memory within your K8s deployment resource manifest. Why? The auto-scaler will use this information to determine when to create/delete a node.
Well, I wish that the above information is helpful to you and I wish you all the best.
–
Think different and code well,
-Conrad
Hey,
In case that anyone comes across this in the future, in addition to what has already been mentioned, if you decide to go with the DigitalOcean App Platform instead of a Droplet, check out this article that DigitalOcean just released:
From security to scalability, consider these seven factors when choosing an app deployment platform for your business.
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.