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

Create a Static Application to Analyze +50M Github Events

Blog post from Tinybird

Post Details
Company
Date Published
Author
Jorge Sancha
Word Count
857
Language
English
Hacker News Points
-
Summary

Static applications, which operate entirely within the browser, offer numerous advantages such as fast performance, ease of deployment, and scalability without requiring a full stack developer. They can be enhanced with frameworks like Next.js or Gatsby, although they often need to fetch data from various services, which can be streamlined by minimizing intermediaries to reduce latency and potential failure points. Tinybird is a service that facilitates real-time querying of large datasets, which is demonstrated in a static application that processes and analyzes over 50 million GitHub events from January 2020. The process involves converting JSON-formatted GitHub event data into CSV using jq and batching it with GNU parallel before uploading to Tinybird. A simple Vue application, or one built with other frameworks, displays aggregated data such as top users and repositories by fetching only the necessary information through Tinybird's API, utilizing SQL queries or predefined endpoints. Deployment is simplified using Zeit's platform, and while the GitHub data used is public, private data can be accessed securely with tokens. Despite concerns, sending SQL queries from a client application is secure as long as queries are limited by tokens to prevent unauthorized data manipulation. The application achieves average query times of around 300 milliseconds without intermediate caches or additional optimizations, and new accounts are being offered early access.