Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Manage PubNub Guest Users

Blog post from PubNub

Post Details
Company
Date Published
Author
Darryn Campbell
Word Count
1,152
Language
English
Hacker News Points
-
Summary

PubNub requires clients to specify a user ID when using their SDKs, which serves various functions such as maintaining a consistent cross-device experience and managing user permissions and metadata. Challenges arise in managing guest users who do not log in, impacting billing and user experience. Three main approaches are suggested for handling guest user IDs: creating a new ID for each guest, maintaining guest user IDs across sessions, or allocating IDs from a guest user pool, each with its own advantages and challenges. The choice of approach depends on factors like expected guest user numbers and available development resources. While a phased approach starting with the simplest option may be beneficial, encouraging users to create accounts can also help mitigate these challenges.