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
richardevcom โ€ข

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
richardevcom โ€ข

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? :)