Home / Companies / Ably / Blog / May 2023

May 2023 Summaries

5 posts from Ably

Filter
Month: Year:
Post Summaries Back to Blog
Realtime updates are crucial in situations where timeliness is key, such as sports scores, stock market fluctuations, and live traffic conditions. The value of up-to-the-second data decays rapidly as the gap grows between data availability and delivery. Successful realtime updates deliver new data points reliably and at scale, through an experience that truly feels realtime. To deliver on the promise of a realtime experience, your system needs to maintain low latency, ensure data integrity, and operate at scale.
May 31, 2023 1,631 words in the original blog post.
Product adoption is a crucial factor in determining the success of consumer products and tech startups. Companies that focus on product adoption often succeed by ensuring people sign up for and use their products, leading to investment and revenue. The process of product adoption involves distinct stages such as awareness, interest, evaluation and trial, adoption, and ongoing reevaluation. Understanding these stages can help businesses prepare communication, user experience, and customer service accordingly. Metrics like adoption rate, product awareness, sign-up rate, activation rate, daily active users, and utilization rate can be used to measure product adoption progress. Strategies to drive product adoption include getting the launch right, curating "Aha!" moments, stimulating engagement through multiplayer experiences, building in virality, and supporting your users.
May 25, 2023 2,720 words in the original blog post.
In this tutorial, we will build a real-time chat application using Ably's realtime messaging capabilities and OpenAI's text generation API. The app will allow users to send messages in real-time and receive responses from OpenAI. We will use Next.js as our frontend framework and Vercel for serverless deployment. To start, you need to have Node.js installed on your machine. You can download it from the official website: https://nodejs.org/en/download/. Once you have Node.js installed, create a new directory for your project and navigate into it using the terminal or command prompt. Then run the following commands to initialize a new Next.js app: ```bash npx create-next-app ably-chat-app cd ably-chat-app ``` This will create a new directory called "ably-chat-app" and install all necessary dependencies for Next.js. Next, we need to install Ably's JavaScript SDK and the OpenAI API client library: ```bash npm install ably @ably/react react-helmet next-compose-styles npm install openai ``` AblyReactEffect is a custom React Hook that encapsulates Ably pub/sub for React functional components in one place. It returns both the current Ably channel and the Ably SDK for the calling code to use to send messages. This hook encapsulates Ably pub/sub for React functional components in one place, so we don't need to worry about it elsewhere, and the code that uses it can just process the messages it receives. The useChannel Hook returns both the current Ably channel and the Ably SDK for the calling code to use to send messages. This hook encapsulates Ably pub/sub for React functional components in one place, so we don't need to worry about it elsewhere, and the code that uses it can just process the messages it receives. Making everything look beautiful with module CSS - AblyChatComponent.module.css You might have noticed when writing the chat component that Next.js has some compiler enforced conventions that dictate where you keep your CSS and how to import it. For this app, we will create a CSS file with the same name as the .jsx file, just with the extensions .module.css. We do this to keep management of the components easier, if in the future we want to delete this component it is nice and simple to also remove its CSS. Once created, it can be imported into the component: import styles from './AblyChatComponent.module.css'; When creating a CSS class on a JSX element, we use the following syntax on the element: className={styles.yourClassName} and the accompanying css would look like this: .yourClassName { styles: gohere; } This app is built with CSS Grid to create the app layout, you are of course welcome to use the CSS provided with this project or to write your own or use a framework. Hosting on Vercel We're using Vercel as our development server and build pipeline. The easiest way to deploy Next.js to production is to use the Vercel platform from the creators of Next.js. Vercel is an all-in-one platform with Global CDN supporting static & Jamstack deployment and Serverless Functions. -- The Next.js documentation In order to deploy your new chat app to Vercel you'll need to: Create a GitHub account (if you don't already have one). Push your app to a GitHub repository. Create a Vercel account. Create a new Vercel app and import your app from your GitHub repository. (This will require you to authorise Vercel to use your GitHub account) Add your ABLY_API_KEY and OPENAI_API_KEY as environment variables. Watch your app deploy. Visit the newly created URL in your browser! WebSockets in Vercel with AblyWhy AblyWhat are we going to build?How to prompt OpenAI?DependenciesLocal dev pre-requirementsBuilding the realtime chat appRealtime Pub/Sub messaging with AblyAuthentication with the Ably serviceWriting the Serverless function to connect query OpenAIThe realtime chat app architectureBuilding the componentsWriting the chat component logicUse a Vercel Lambda to query OpenAIUsing Ably correctly in React ComponentsMaking everything look beautiful with module CSS - AblyChatComponent.module.cssHosting on Vercel
May 24, 2023 4,569 words in the original blog post.
ChatGPT has become the fastest growing consumer application in history, reaching 100 million monthly active users (MAU) within just two months of its launch. This rapid growth highlights the importance of tracking and understanding active user metrics for product success. Daily active users (DAU) and MAU are commonly used to measure a product's engagement and retention rates. Both metrics can provide valuable insights into a product's performance, but they capture different information and offer unique perspectives on user behavior. To increase active users, companies should focus on improving the overall user experience, enhancing value proposition, and implementing strategies such as gamification, in-app messaging, and personalized experiences. Additionally, tools like Google Analytics, Baremetrics, Posthog, Split, Hubspot, and Ably can help support active user growth by providing analytics and facilitating communication with users.
May 11, 2023 4,020 words in the original blog post.
The text discusses the importance of choosing the right chat solution for your business and provides an overview of five best chat API and messaging SDKs available in the market. It explains what chat messaging APIs and SDKs are, their differences, and key features to look for in a live chat solution. These include low latency, scalability, reliability, guaranteed delivery, elasticity, and rich features. The five best chat API and messaging SDKs covered are Ably, Twilio, Firebase, Sendbird, and Stream (formerly GetStream). Each of these platforms has its unique offerings and limitations, making it crucial to choose the one that aligns with your specific needs and requirements.
May 10, 2023 2,004 words in the original blog post.