It's content like this that helps a lot with someone just starting out with VPS. Also nice to know how you could test the load on your server. I learned a lot thanks for sharing!
It’s really a wonderful video, there is no lagging in between, it’s completely engaging and a good content. Even you have less amount of subscribers, these kind of good videos helps you to reach more. In very less duration video, I think no one did this kind of load testing with summery. Keep going 🔥
Thanks a lot brother, I was actually in the middle of deciding the VPS for my Nextjs web app and was trying to do my own testing until your video popped up in my feed, this video helps a lot!!
Wow awesome 👍. I searching exact same think I am need. Thank for clarifying my doubt. Also show testing tool and procedure. Absolutely your videos not lagging or boring fully engaged. Thanks for making.
Thanks for this brother, haven't hears of locust before. I want to become a full stack web developer and it never occurred to me that I should test for this kind of metrics. Still a long way to go...
request per second depend on how much ram usage per request and how much cpu usage per request (if not using database or other service). so it depend on your code or your program (ex. web server).
I have 2xVCPU, 4GB of RAM on my VPS. If I reach 100 users on my server, I will be rich. Because, one device cost $300 and they are connected to my MQTT, backend and frontend in JavaScript. According to this, I can probably serve 300-500 users. I can scale my project using PM2 Cluster module and run two instances of my backend.
A $6 VPS can handle at least 10-20 times more if the software architected properly (caching, SSG, or better performing framework - nextjs is one of the slowest).
I run my own personal streaming site on my £0.90/m OVH VPS and it runs flawlessly, querying a 2.5m record database takes 50-800ms, although my userbase is literally just my family and friends but its still incredibly useful for basically a $1/m. I can watch whatever I want anywhere for less than a bottle of water.
Hi, this was a pretty helpful to me, but how can we test a page which waits for more than 3 & 4 apis response for the complete page load, then how can we test that page response time for a set of users?
Very foundational, easy to follow and informative video, thanks! Curious question: the site seems to be a doc site, which could be a static site, what are you using sqlite database for?
the markdown examples were inside sqlite when I was recording the video. recently, I moved all of them into markdown. and can't make it static site coz soon we'll have pro components that will require apis, auth stuff
I lately found that digitalocean's droplets is very expensive compared to its rivals. Like for the same 6$ on hostinger for example. You will get 8 GB of RAMs and 4 CPUs. And they are not really that different both are base VPS. Crazy
Can you please do a similar video to show the difference between CPU and GPU? I mean at what point does CPU become unfeasible & we ought to go with a GPU?
checkout the locust docs to get the setup details. and ideally, yes, you should do it on the dev environment. but you can take the risk of doing it on prod if you don't have a lot of users.
The main problem will haven when you have users who has data in you database. When you to get data with running query form database there will the main things... Else you don’t get the actual result
At 200 concurrent users, if you bill right, that's some good money, and therefore, you can upgrade your servers to meet demands. Also, you should be able to optimise different parts of your app. There's no need to worry about anything except ddos attacks, which you can mitigate too
@@ariflogs i mean about network . if u take aws we have to separate cost for ec2 instance and vps to supply network and crazy part is vps (network) cost more than ec2 instance cost
by AWS VPS, do you mean Lightsail? if so, then do you need both ec2 and another VPS to host an app? and for my case, I'm just using a digitalocean droplet for my vps for $6, which includes all the cost.
@@ariflogs yea i have paid for vps and ec2 😭 .i got 8$ bill just for vps alone and i am in free tire plan so 0$ for ec2 . i came to know about this after paying bill 🥲
Yeah, my point exactly when talking to people about web app deployment. Yet we see a lot of small businesses spending hundreds of dollars per month on expensive infrastructure just for a couple simple apps that have 100 daily users.
You do not need cloud for small to medium enterprise level projects. Sad to see people nowadays are just leaning to cloud without realizing the cost benefits and controls they can get with their own instances.
I run my 50 microservices twitter clone on a 1vCPU server because my architecture is very optimized for the 0 users that I have
haha, that sounds relatable 😆
Can you share a glimpse of the architecture ?
@@abdallahmeriouli4110 He said zero users dumbass, start thinking more
what architecture you are following?
😂😂😂
It's content like this that helps a lot with someone just starting out with VPS. Also nice to know how you could test the load on your server. I learned a lot thanks for sharing!
glad I could help 😀
It’s really a wonderful video, there is no lagging in between, it’s completely engaging and a good content. Even you have less amount of subscribers, these kind of good videos helps you to reach more. In very less duration video, I think no one did this kind of load testing with summery. Keep going 🔥
Thank you for the kind words! 💜
It was cool to see a load test and learn about this library, I've never ran a load test before. Thanks for sharing.
Straight to the point, a good one 👍🏻
People like you should inspire trust on vps/baremetal instead of relying too much on cloud.
yeapp, both have their advantages for sure.
And isn't cloud only the cooler word for vps or server?
Thanks a lot brother, I was actually in the middle of deciding the VPS for my Nextjs web app and was trying to do my own testing until your video popped up in my feed, this video helps a lot!!
glad you found it useful 💜
I need more of this type of content, subscribed
thank you 🙏
DDoS'ed his own server for science! Respect. 🙂
haha. thanks 😬
Not DDoS, just DoS 🤔
You need more likes my man Keep the good work I'm sure you will be a beast here
thank you 🙏
Great content @Arif,
Learned a lot.
Please create more lessons like this.
thank you 🙏 will sure do
Great content ! Congrats !
You got one more subscriber.
thank you 🙏
With good caching and a cdn, it’s more than enough for a lot of low traffic sites
yeapp
I would be fascinated to see you try this with different languages and frameworks. Great video!! Earned a sub
I have plan to make a video comparing all major Node frameworks. 😁
Thanks for the video mate, looking for more content from your channel
stay turned 🙏
These are the important questions, it’s great to get a practical answer to it.
thank you 🙏
Wow awesome 👍. I searching exact same think I am need. Thank for clarifying my doubt. Also show testing tool and procedure.
Absolutely your videos not lagging or boring fully engaged. Thanks for making.
you're welcome 🙏
glad you found it helpful
Very insightful! Than you very much. Please do make in-depth and practical videos like these.
Thanks, will do!
Loved this! Been looking for an answer to this question for a while.
This is so handy was just checking out how much workload I could put on the 6$ vps today
Thanks for this brother, haven't hears of locust before.
I want to become a full stack web developer and it never occurred to me that I should test for this kind of metrics. Still a long way to go...
you'll learn stuff over time 🚀
Very useful! I just learned a good way to measure my app performance, thank you bro!
you're welcome 🙏. glad it helped
Good content bro! Loved your simple straight and useful presentation!
Thank you 🙏
Amazing content man keep it up!
thank you 💜
Loved this vid! Subbed, keep up the great work
Thank you! 🙏
Great job. I like this type of load testing.
Glad you enjoyed it! 😁
request per second depend on how much ram usage per request and how much cpu usage per request (if not using database or other service). so it depend on your code or your program (ex. web server).
I have 2xVCPU, 4GB of RAM on my VPS. If I reach 100 users on my server, I will be rich. Because, one device cost $300 and they are connected to my MQTT, backend and frontend in JavaScript. According to this, I can probably serve 300-500 users. I can scale my project using PM2 Cluster module and run two instances of my backend.
yeapp, 4GB is definitely more than enough for small-medium applications.
and your project sounds cool. good luch with that 🚀
This is very insightful!
thank you 🙏
Awesome video, man! Thanks for sharing it
You're welcome 🙏
Thanks, it was very useful.
More such practical and real life topic videos are welcomed, if possible :)
thank you. 💜
any specific topic you'd like to suggest?
Excellent video 👌🏾👌🏾
Requesting more engaging contents like these
will do 🫡💜
Good content. I wanted to try load testing and this helps a lot.
thank you 🙏
A $6 VPS can handle at least 10-20 times more if the software architected properly (caching, SSG, or better performing framework - nextjs is one of the slowest).
true, will be adding them soon
I run my own personal streaming site on my £0.90/m OVH VPS and it runs flawlessly, querying a 2.5m record database takes 50-800ms, although my userbase is literally just my family and friends but its still incredibly useful for basically a $1/m. I can watch whatever I want anywhere for less than a bottle of water.
damn! that is pretty cool
Where do you source data? Is it just pirated from some torrent tracker?
Hey, can you share the link? I'd like to check it out .
@@Vishal-jq3fpThat defeats the purpose of 'personal site'
Supporting your channel, keep up making good video. I suggest on load testing different type of vps service on their chepest one.
interesting.. do you think different services might give different results with the same server configuration?
It also depends on the code you have written. Gzip, reddis, etc
wow nice video, honestly not boring and taught me something
Glad to hear it! 😁
Nice video arif 😊. Video was quite smooth 👍. Hoping for these kinds of videos in future . Have a great day 💯
thank you 💜 and you too
Very useful. Learnt about Locust here. Thanks
you're welcome 🙏
Great content. Please do a tutorial on load testing
thanks for the information. why did u choose locus instead of k6 for load test?
I found locust easier for the video
YT flashed this up to me, I enjoyed it. What about a follow-up video where you stick Varnish in front of your server?
you mean this varnish-cache.org?
Hi, this was a pretty helpful to me, but how can we test a page which waits for more than 3 & 4 apis response for the complete page load, then how can we test that page response time for a set of users?
will the apis be in the same server or different?
Great video! You should try it with K6 to get a more deeper analysis
fair, will check it out
Very foundational, easy to follow and informative video, thanks! Curious question: the site seems to be a doc site, which could be a static site, what are you using sqlite database for?
the markdown examples were inside sqlite when I was recording the video.
recently, I moved all of them into markdown.
and can't make it static site coz soon we'll have pro components that will require apis, auth stuff
@@ariflogs Got it! Makes sense, sounds exiting. Really digging the components.
Beautiful UI design.
Glad you like it! 💜
you just got a permanent sub ❤
with notification on, your videos are awesome
thank you 💜
I lately found that digitalocean's droplets is very expensive compared to its rivals.
Like for the same 6$ on hostinger for example. You will get 8 GB of RAMs and 4 CPUs.
And they are not really that different both are base VPS. Crazy
interesting.. are you talking about Hetzner?
@@ariflogs Hetzner & hostinger i believe are veryy cheap
Thanks for the info, I got a 2vcpu, 4gb ram, 70gb ssd on racknerd for 38usd/year
nice explanation with real world example ❤😊
thank you 💜
If it's possible, can you share the repo to be able to see how this is was configured?
you mean the locust python file?
Can you please do a similar video to show the difference between CPU and GPU? I mean at what point does CPU become unfeasible & we ought to go with a GPU?
hmm, that sounds pretty interesting. 😮
will look into it
Can I know the note/sketch app that you are using to draw mind map? and can you recommend one for making psudeo app code?
I'm using excalidraw
thanks, right to the point and very informative
Glad it was helpful!
worthy content with such information
thank you
Nice one keep uploading more stuffs
thanks, will do 😁
Can you share your terminal configuration? I really liked it!
I use Warp. I made a video on it, you can check it out.
thanks for the video. i do own a linode 5$ vps with same specs... always wondered how much it can do
seems like a lot more than we expect 😁
how to setup locust - and should we do this on a test / demo environment
checkout the locust docs to get the setup details.
and ideally, yes, you should do it on the dev environment. but you can take the risk of doing it on prod if you don't have a lot of users.
Didn't know that NextJS is so slow
which framework are you comparing with?
Me comparing it with Sveltekit
Great vid dude
thank you 💜
The main problem will haven when you have users who has data in you database. When you to get data with running query form database there will the main things... Else you don’t get the actual result
the page I was testing actually had a database query
Uncommon topic. Interesting
I really liked your UI component. Can you please launch a course to teach creating UI component library from scratch? Make it a paid one if you will.
umm interesting, think there's enough demand for a course like that?
Thanks for the video!
you're welcome 🙏
did not understand well. how to know, what I need for my software?
in terms of server configuration?
nice video , thank you bro
Glad you liked it
wich software do you use to record screen and webcam ? thank you, nice video
Streamlabs
At 200 concurrent users, if you bill right, that's some good money, and therefore, you can upgrade your servers to meet demands. Also, you should be able to optimise different parts of your app. There's no need to worry about anything except ddos attacks, which you can mitigate too
yeapp. makes sense
great video brother. from Dhk.
nicee, me too
Can u do a comparison analysis with a raspberry Pi acting as server for this webpage????
that's a pretty good idea.. Don't have one at hand, though 😕
will definitely make one in the future
Good video. Make more content like these
thanks, will do 💜
Please do at 200 or 300 and share the stats of the system
How do cpu and ram perform?
think the CPU will be fine, but will be out of ram
Adding a load balancer can get you now usage, but that sqlite will definitely betray you
Nice video
umm you had bad experience with sqlite?
wow great to see Bangladeshi Brother
🇧🇩
Believe it or not but I have a 8gb 4 core VPS for 6 euros, there are dirt cheap VPS options in Germany
interesting.. why provider you using?
Have been hearing some food stuff about Hetzner. I just use digitalocean coz I like prefer their UI/UX
Awesome video!
thank you 💜
Which vps server as i cant c it on mobile screen
Digital Ocean
If i use locust to test your endpoint with huge amount of request, will it jammed your servers ? Does this is what it is called ddos ?
Kind of yes. But there are more to the story.
Think I should make a video on DDOS attacks?
Yes! please
alright, you got it 👍
what tool you are using to draw those diagrams ?
excalidraw
Very good video
Glad you enjoyed it! 😊
Thanks that's helpful
great video brother! where are you from?
Bangladesh
Thank you!
You're welcome!
6 USD per month for those specs are crazy expensive. I pay 11 USD per YEAR for the same!
what service you use?
@@ariflogs RackNerd
why did you use caddy?
nginx isn't good?
Nginx is fine, I just find Caddy easier to work with.
great vid
what about VPS cost ??
$6/month.. if that's what you mean?
@@ariflogs i mean about network . if u take aws we have to separate cost for ec2 instance and vps to supply network and crazy part is vps (network) cost more than ec2 instance cost
by AWS VPS, do you mean Lightsail? if so, then do you need both ec2 and another VPS to host an app?
and for my case, I'm just using a digitalocean droplet for my vps for $6, which includes all the cost.
@@ariflogs yea i have paid for vps and ec2 😭 .i got 8$ bill just for vps alone and i am in free tire plan so 0$ for ec2 . i came to know about this after paying bill 🥲
i am sorry its (VPC) Virtual Private Cloud not VPS
nice one
bruno is awesome
yeapp
Subbed bro
thank you 🙏
Its real Unboxing
Yeah, my point exactly when talking to people about web app deployment. Yet we see a lot of small businesses spending hundreds of dollars per month on expensive infrastructure just for a couple simple apps that have 100 daily users.
true that! 😶
Damn
Love from Pakistan 🇵🇰 ♥️
Love from Bangladesh 🇧🇩
bang ray?
what you mean?
for 1 min video i am getting two unskippable 1.30min ad. uhhhhhhh.
haha yeah, wish RUclips would pay me for showing those ads 😆
Validate First and worry about 0 users
no, this is more fun 😤
It $5 before
yeah
Response time is absolutely trash bro.
I guess, should be faster after adding CDN
Why using so overpriced VPS?
Hostinger, OVH and many others can offer aroudnd 4-8 Gb of ram and 2 vCPUs in this price.
hehe, check out my latest video 😁
I kove azure
interesting, haven't used much Azure.
how does it compare with AWS?
Looks much cleaner and probably more pragmatical for most people.
@@SuperGamer-wn6gp i jave used aws and azure both but I liked azure most
You do not need cloud for small to medium enterprise level projects.
Sad to see people nowadays are just leaning to cloud without realizing the cost benefits and controls they can get with their own instances.
@@AravindhKumar007 bait comment