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...
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.
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.
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).
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
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).
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?
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?
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
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.
I did not get bore while watching this video. I was curious see some failed requests. Please also compare 2 clouds. Especially 6 USD DO vs 6 USD Contabo. Why german clouds are cost wise cheap? DO 6 USD VPS can handle 100 concurrent users. okay in worst case 50. But can contabo make it possible?
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.
@@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 🥲
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 😀
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?
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.
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 💜
DDoS'ed his own server for science! Respect. 🙂
haha. thanks 😬
Not DDoS, just DoS 🤔
This is so handy was just checking out how much workload I could put on the 6$ vps today
These are the important questions, it’s great to get a practical answer to it.
thank you 🙏
With good caching and a cdn, it’s more than enough for a lot of low traffic sites
yeapp
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
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 🚀
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. 😁
Very insightful! Than you very much. Please do make in-depth and practical videos like these.
Thanks, will do!
Great content @Arif,
Learned a lot.
Please create more lessons like this.
thank you 🙏 will sure do
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 🚀
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'
I need more of this type of content, subscribed
thank you 🙏
Loved this! Been looking for an answer to this question for a while.
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).
Thanks for the video mate, looking for more content from your channel
stay turned 🙏
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.
thanks for the information. why did u choose locus instead of k6 for load test?
I found locust easier for the video
You need more likes my man Keep the good work I'm sure you will be a beast here
thank you 🙏
It also depends on the code you have written. Gzip, reddis, etc
Great video! You should try it with K6 to get a more deeper analysis
fair, will check it out
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
Very useful! I just learned a good way to measure my app performance, thank you bro!
you're welcome 🙏. glad it helped
Great job. I like this type of load testing.
Glad you enjoyed it! 😁
Great content. Please do a tutorial on load testing
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?
Good content bro! Loved your simple straight and useful presentation!
Thank you 🙏
Loved this vid! Subbed, keep up the great work
Thank you! 🙏
Excellent video 👌🏾👌🏾
Requesting more engaging contents like these
will do 🫡💜
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?
Good content. I wanted to try load testing and this helps a lot.
thank you 🙏
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?
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?
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
Nice video arif 😊. Video was quite smooth 👍. Hoping for these kinds of videos in future . Have a great day 💯
thank you 💜 and you too
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
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 😁
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
Amazing content man keep it up!
thank you 💜
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?
Awesome video, man! Thanks for sharing it
You're welcome 🙏
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?
Very useful. Learnt about Locust here. Thanks
you're welcome 🙏
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
wich software do you use to record screen and webcam ? thank you, nice video
Streamlabs
wow nice video, honestly not boring and taught me something
Glad to hear it! 😁
Didn't know that NextJS is so slow
which framework are you comparing with?
Me comparing it with Sveltekit
nice explanation with real world example ❤😊
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
Can you share your terminal configuration? I really liked it!
I use Warp. I made a video on it, you can check it out.
Beautiful UI design.
Glad you like it! 💜
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
This is very insightful!
thank you 🙏
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
you just got a permanent sub ❤
with notification on, your videos are awesome
thank you 💜
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, right to the point and very informative
Glad it was helpful!
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 👍
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
Uncommon topic. Interesting
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
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.
did not understand well. how to know, what I need for my software?
in terms of server configuration?
worthy content with such information
thank you
what tool you are using to draw those diagrams ?
excalidraw
wow great to see Bangladeshi Brother
🇧🇩
great video brother. from Dhk.
nicee, me too
Nice one keep uploading more stuffs
thanks, will do 😁
Thanks for the video!
you're welcome 🙏
great video brother! where are you from?
Bangladesh
I did not get bore while watching this video. I was curious see some failed requests. Please also compare 2 clouds. Especially 6 USD DO vs 6 USD Contabo. Why german clouds are cost wise cheap? DO 6 USD VPS can handle 100 concurrent users. okay in worst case 50. But can contabo make it possible?
Good idea! will definitely look into it
Good video. Make more content like these
thanks, will do 💜
Great vid dude
thank you 💜
Thanks that's helpful
Which vps server as i cant c it on mobile screen
Digital Ocean
nice video , thank you bro
Glad you liked it
Love from Pakistan 🇵🇰 ♥️
Love from Bangladesh 🇧🇩
why did you use caddy?
nginx isn't good?
Nginx is fine, I just find Caddy easier to work with.
Thank you!
You're welcome!
Awesome video!
thank you 💜
Very good video
Glad you enjoyed it! 😊
for 1 min video i am getting two unskippable 1.30min ad. uhhhhhhh.
haha yeah, wish TH-cam would pay me for showing those ads 😆
bang ray?
what you mean?
nice one
bruno is awesome
yeapp
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
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
Its real Unboxing
Subbed bro
thank you 🙏
Validate First and worry about 0 users
no, this is more fun 😤
Response time is absolutely trash bro.
I guess, should be faster after adding CDN
It $5 before
yeah
you could really get a better vps with $6 if you didn't use digital ocean, still crazy what it can do tho
interesting, which platform would you suggest?
I use DO coz I like their UI
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