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

Globally-distributed Serverless Application in 100 Lines of Code. Infrastructure Included!

Blog post from Pulumi

Post Details
Company
Date Published
Author
Mikhail Shilkov
Word Count
1,868
Company Posts That Month
8
Language
English
Hacker News Points
-
Post removed?
No
Summary

Pulumi was utilized to build a serverless URL shortener application, leveraging managed Azure services to ensure efficient performance by placing data stores and HTTP endpoints close to end users. Initially, a non-distributed version was created with Cosmos DB for storing URL mappings and Azure Functions to manage HTTP requests. Despite Cosmos DB being more robust than necessary for a simple key-value store, its multi-region capabilities were advantageous for reducing latency in a global setup. The application was extended to multiple Azure regions using Azure Traffic Manager to distribute incoming traffic based on performance, thus optimizing response times. Although this setup improved latency overall, some regions like Tel-Aviv and Brisbane still faced higher response times due to geographical limitations and unexpected routing. The project demonstrated the capabilities of Pulumi and TypeScript in creating scalable, globally distributed applications by integrating cloud services efficiently.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 6 380 64 31 +55%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.