Serverless

Social activities planned for the weekend all vaporized for a variety of reasons. Instead, how I spent much of my time was building an API into Bing Chat so that I could use it from my PHP application. I couldn't do this directly as I needed to host a NodeJS library to act as a proxy. So I elected to deploy a serverless function app in Azure to fill the gap.

As an IT Professional I've advocated for serverless solutions plenty of times as Cloud becomes a more routine part of organisation's infrastructure landscape. There is much to like about the concept of code that's only running when you need it, that will spin up in milliseconds any time you want it. But despite having a reasonable understanding of how that works under the hood, I've never actually deployed serverless code myself. So there was an element of magic that lingered behind the curtain.

Building and deploying a serverless API only took a few hours, and that included setting up an Azure account and installing Visual Studio Code plugins. The only real problem I had was with a version of Node that was too high. I called my API a few times from my PHP application and it worked. Such a mundane experience, but it felt like I was finally over the threshold and ready to call myself a Cloud expert.

Away from my computer, no one seemed to care that there was a piece of code in a database somewhere, but not hosted until it was called into action whenever it was needed. I went for a walk around the neighbourhood, enjoying the golden, sunny light knowing nearly everyone I was passing had never deployed serverless to the cloud.

Comments

Add Comment
Toggle Comments Form
Next Entry: Breakfast

Some days it seems bizarre that my job is to sit, which is not very comfortable, and not to walk up steep hills, which feels so natural.

Promoted Entry: The Hidden Life of Trees

I love trees. They're tall and stoic, so I relate to them. I feel a sense of serenity and belonging when walking beneath an ancient forest canopy and that is not just because most ancient forest canopies I've walked under have been adjacent to a thriving craft beer industry

Promoted Entry: Chasing Waterfalls and Sunset Cows

While taking a holiday was supposed to be an escape from much of life's routines, I was not expecting to abstain from eating almonds for over a week. Finally this weekend I have resumed my almond and apple morning teas in the presences of some grand waterfalls in Springbrook and Lamington National Parks.

Previous Entry: How much do I like APIs?

How much do I like APIs? A decent amount, it seems.


Not getting enough emails? Want to receive updates and publishing news in your inbox? Sign up to the bradism mailing list. You'll also receive an ebook, free!