NATS vs PubNub: What are the differences?
What is NATS? Lightweight publish-subscribe & distributed queueing messaging system. Unlike traditional enterprise messaging systems, NATS has an always-on dial tone that does whatever it takes to remain available. This forms a great base for building modern, reliable, and scalable cloud and distributed systems.
What is PubNub? Build real-time apps quickly and scale them globally. PubNub makes it easy for you to add real-time capabilities to your apps, without worrying about the infrastructure. Build apps that allow your users to engage in real-time across mobile, browser, desktop and server.
NATS and PubNub can be categorized as "Realtime Backend / API" tools.
"Fastest pub-sub system out there" is the top reason why over 13 developers like NATS, while over 31 developers mention "Massively scalable & easy to use" as the leading cause for choosing PubNub.
According to the StackShare community, PubNub has a broader approval, being mentioned in 43 company stacks & 12 developers stacks; compared to NATS, which is listed in 27 company stacks and 11 developer stacks.
What is NATS?
What is PubNub?
Need advice about which tool to choose?Ask the StackShare community!
Sign up to add, upvote and see more prosMake informed product decisions
What are the cons of using NATS?
What are the cons of using PubNub?
Sign up to get full access to all the companiesMake informed product decisions
I recently used PubNub to implement a realtime leaderboard into my Unity game. It was easy and straight forward to get up and running. I choose Pubnub because they had a Unity SDK and an example project which showed me how to use it. I downloaded the example project and tweaked it to fit my game.
In their documentation I found good information about what I needed to know. Also, their support is very helpful when you have questions.
I used PubNub because we needed a real time server for our product. Even though we selected a fixed amount paid version, the amount they charged was incredibly high, 8x of the fixed amount. We could not understand how did they do the calculation and there is no easy way of understanding it. Regarding to the analytics they have, we spent millions of messages with few hundred active users.
Then for the second month we tried to change our architecture to decrease the messages but nothing changed. Then we wanted to get some support from them. We arranged a meeting and the person who joined the meeting didn't even have permissions to see our usage, so it was waste of time. Then they arranged another meeting WEEKS after which didn't solve anything either. As a result, we stopped using it and implemented our own simple pub-sub server.
I was building up an Alexa Skill in which user orders a meal and its notification gets to the system of the restaurant and gets displayed which was implemented using PubNub which helped me a lot in getting real time updates and notifications. I used simple publish and subscribe module to implement it which resolved a major challenge. The 5 to 6 lines of python code get my every single chain working with notifications. Thanking PubNub for this major support for solving the challenge.
I use PubNub because is simple and easy I use on Chat app this service has stable, cheap and userfriendly. The admin interface is very easy to understand and you will find a lot of tutorials and learning at their website. Pubnub comes with my highest recommendation for anyone working with apps with chat, push notifications and other realtime data.
PubNub is my goto solution for when I want to use sockets at scale. They have redundant data centers in 14 regions with 99.999% SLA allowing me to build realtime apps for any platform. Also Stephen (PubNub CTO) is Awesome!
Using websockets is something, scaling a message pipeline to thousands of concurrent connections is something else.
I trust PubNub with what it does best, and use it as zerotoherojs.com ’s messaging pipeline.
With PubNub, I have one less problem to think about.
Flutter uses PubNub for sending push notifications when the users add new posts to the Flutter Community or leave comments.