When building a product, it’s important to design it with security, scalability, and reliability in mind. If you don’t have a strategy, your product could fail before it has a chance to grow.
You must answer questions like: How do you scale to millions of concurrent customers without ever having a single service outage? How do you keep your stack and user data secure? How do you monitor and receive alerts? How do you maximize your impact with the least amount of moving parts?
It may seem like a good idea to develop every aspect of a product – build your own everything. Invent your own security. Run the code on a server you control. This mindset opens you up to vulnerabilities, unless you constantly oversee your product. This quickly becomes dollars wasted. Expect to be exposed to vulnerabilities as your product scales. Here are a few topics to consider before you build your product in-house:
A new approach is to offload scaling responsibility to a cloud provider. With this model you will often pay for the resources used by your product on a ‘pay as you go’ basis, also known as “Functions-as-a-Service” (FaaS), instead of buying units of computing capacity. The cloud provider handles most or all of the server administration, provisioning, security, and maintenance. That means your product infinitely scales without managing servers or infrastructure.
More advantages of serverless include:
PubNub’s primary product is a real-time publish/subscribe messaging API built on a global Data Stream Network. A benefit of using PubNub over any other system or homegrown solution is that messages sent with PubNub are delivered in under 0.25 seconds and usually much faster (30 – 40ms) because PubNub has multiple points of presence on every inhabited continent. PubNub supports over 70 SDKs and has features like mobile push notifications and Project EON that you can take advantage of in your product.
Developers use PubNub’s Real-time Messaging for:
Using Functions, you can execute your own code every time a PubNub message is sent. This code can be used to augment, transform, route, filter, or aggregate messages. Here are a few things you could use Functions to do:
The Blocks Catalog contains more than 80 open source Function event handlers, to link your product up to popular APIs. See the Blocks Catalog for free Functions code that you can import to your PubNub app.
Get started building a serverless application using PubNub with these resources:
Have suggestions or questions about the content of this post? Reach out at sales@pubnub.com.
There are common underlying technologies for a dating app, and in this post, we’ll talk about the major technologies and designs...
Michael Carroll
How to use geohashing, JavaScript, Google Maps API, and BART API to build a real-time public transit schedule app.
Michael Carroll
How to track and stream real-time vehicle location on a live-updating map using EON, JavaScript, and the Mapbox API.
Michael Carroll