Cyrus Najmabadi

Staff Software Engineer
Find me on:

Recent Posts

Lambdas as Lambdas: The magic of simple serverless Functions

Posted by Cyrus Najmabadi on Oct 10, 2018 8:27:35 AM

Pulumi's approach to infrastructure as code uses real languages instead of YAML or DSLs. One major advantage of this approach is that AWS Lambdas, Azure Functions, Google Cloud Functions, et al. can just be real language lambdas, offering a flexible and simple path to serverless. Such functions behave as normal functions, allowing you to treat serverless code as part of your application instead of separate "infrastructure" that needs to be configured, managed, and versioned manually. In this post, we'll examine this capability in JavaScript, which is already very function- and callback-oriented, making serverless feel like a natural extension of the language we already know and love. 

Read More

Topics: Serverless, TypeScript

Running a Serverless Node.js HTTP Server on AWS and Azure

Posted by Cyrus Najmabadi on Oct 2, 2018 12:52:51 PM

The newly introduced cloud.HttpServer in Pulumi makes it easy to serve a standard Node.js HTTP server as a serverless API on any cloud platform.  This new API brings together the flexibility and rich ecosystem of Node.js HTTP servers, the cost and operational simplicity of serverless APIs, and the multi-cloud authoring and deployment of Pulumi.  In this post, we walk through some of the background on why we introduced this new API and how it fits into the Node.js HTTP ecosystem.

Read More

Topics: Serverless

Advanced TypeScript type FTW!

Posted by Cyrus Najmabadi on Sep 19, 2018 12:55:01 PM

We at Pulumi love TypeScript for cloud apps and infrastructure, because of its rich type system and great ahead-of-time typechecking – making for a more productive inner loop and helping to find errors sooner. The typesystem magic behind how this works for infrastructure as code can be fascinating!

Read More

Topics: TypeScript

Using Pulumi with AWS SQS and Lambdas

Posted by Cyrus Najmabadi on Jul 10, 2018 12:14:30 PM

Two weeks ago Amazon added Simple Queue Service (SQS) as a supported event source for Lambda. SQS is one of AWS’s oldest services, providing access to a powerful message queue that can do things like guarantee messages will be delivered at least once, or messages that will be processed in the same order they were received in. Adding SQS as a supported event source for Lambda means that now it’s possible to use SQS in a serverless computing infrastructure, where Lambdas are triggered in response to messages added to your SQS queue. Now, instead of needing some sort of Service dedicated to polling your SQS queue, or creating Simple Notification Service (SNS) notifications from your messages, you can instead just directly trigger whatever Lambda you want.

Read More

Topics: Serverless, AWS, JavaScript

Pulumi Blog

Cloud Native Infrastructure as Code.

Get started

curl -fsSL https://get.pulumi.com/ | sh

Resources

Subscribe to our newsletter

Recent Posts