DEV Community

Cover image for How to build a real-time Auction system - Connecting Socket.io With React ๐Ÿ”ฅ (Part 2)

How to build a real-time Auction system - Connecting Socket.io With React ๐Ÿ”ฅ (Part 2)

Nevo David on August 09, 2022

Hi everybody and welcome back! A small recap Like an actual auction, if you bid for a product, you get counterbids from other bidders. ...
Collapse
 
richardevcom profile image
richardev

Just wanted to show some love for original articles like this one. ๐Ÿงก I'm not particulary React fan, but seeing quality post like yours - you gotta support.

I do feel that WS would be maybe more simplistic approach for notifications, than Socket.io, but I guess that's a preference.

Collapse
 
nevodavid profile image
Nevo David

Hi richardevcom, Thank you!
Socket.io basically wraps WS, can you elaborate? :)

Collapse
 
richardevcom profile image
richardev

While using WS is arguably simpler than Socket.io - I personally find it easier to use for simple notifications. Additionally - performance is noticeably better on heavier usage scenarios.

Thread Thread
 
nevodavid profile image
Nevo David

Yup, The more layers you remove the faster you app becomes.
It's a trade off usually between control and speed.
Same like express and nest.js :)

Collapse
 
nevodavid profile image
Nevo David

Did you feel this article helped you? how?

Collapse
 
jainpawan21 profile image
Pawan Jain

Yes, I was waiting for 2nd part

Collapse
 
nevodavid profile image
Nevo David

Happy to give it to you! :)
What should I write about next?

Collapse
 
johncenahuang profile image
John Huang

Thanks for this article! Really appreciate your efforts of putting them together.

Collapse
 
nevodavid profile image
Nevo David

Thank you very much! Let me know what you are intreseted in and I can write about it :)

Collapse
 
revenity profile image
Revenity • Edited
Collapse
 
nevodavid profile image
Nevo David

Do you have a Github link?

Collapse
 
revenity profile image
Revenity
Collapse
 
nevodavid profile image
Nevo David

Share your github library here!

Collapse
 
skiboybl profile image
Skiboybl

How would you handle the load when more users connect. Socket.io fails when it has many connections and requests

Collapse
 
nevodavid profile image
Nevo David

Can you elaborate? We can always scale, open more servers.
Also Socket.io offer a sleep mode option to reduce the usage on the server :)
What would you suggest?

Collapse
 
joelbonetr profile image
JoelBonetR ๐Ÿฅ‡ • Edited

Great start! ๐Ÿ˜

Which other application use-cases do you want to try with websockets?

Will you try to build a websocket server using Express (without socket.io)?

Let me know if you do! ๐Ÿ™‚

Collapse
 
nevodavid profile image
Nevo David

I am thinking about a chat :)

Collapse
 
nevodavid profile image
Nevo David

How are you today? ๐Ÿš€

Collapse
 
pratikdahooman profile image
pratik12350

Thanks for this article man! Learned lots of things about socketIO.
Shared too!

Collapse
 
nevodavid profile image
Nevo David

Awesome pratik12350!
What did you learn? :)