Twitter Snowflake IDs: Engineering Unique, Chronological Tweet Identifiers at Scale
Explore how a 64‑bit Snowflake ID packs timestamp, worker and sequence to guarantee globally unique, roughly ordered tweet IDs and why that matters for scalability.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Explore how a 64‑bit Snowflake ID packs timestamp, worker and sequence to guarantee globally unique, roughly ordered tweet IDs and why that matters for scalability.
App-only bearer tokens let your server read public X profile metrics without user login. This guide covers the lookup endpoint, a worked curl example, caching, and rate-limit caveats.
PKCE lets public clients like SPAs authenticate Twitter users without storing secrets. This post walks through the OAuth 2.0 Authorization Code Flow with PKCE for API v2, including authorization URL construction, token exchange, refresh rotation, and the practical limits you'll hit in production.
A diagnostic guide for developers hitting Twitter API v1.1's 280-code-point tweet limit and 90-request/15-minute rate ceiling. Includes cause table, ordered checks, code-level fixes for truncation and 429 handling, and escalation triggers.
Learn how to implement the Twitter API v2 Filtered Stream to ingest real-time tweets using server-side rules, chunked HTTP responses, and robust failure recovery strategies.
A decision guide for engineering teams integrating Twitter API v2: compare bearer token reads, OAuth 1.0a posting, and access tiers before building.
Decide between the free and elevated filtered streams, understand quota limits, and see a Python/Tweepy example that authenticates with a bearer token, sets rules, and consumes live tweets.
Architecture note for Twitter API v2 filtered stream: requirements, minimal HTTP/2 design, trust boundaries, operational checks, failure modes, and conditions that would change the design.
Use expansions=author_id on GET /2/tweets/:id to hydrate the Tweet and author profile in one call while respecting bearer-token rate limits.