My team run VSC in the browser and they are just fine - Part II

Introduction In the first part of this series - I run VSC in the browser and I was just fine - I wrote many stupid things around the possibility of having a VSC server instance running inside AWS over a simple, immutable, ec2 instance. The template {that can be easily deployed by a Lambda function [that can be easily deployed behind a route53 record (that can be easily placed as the endpoint of a custom Slack action)]} let you start your IDE and code from wherever you would like to....

July 3, 2019 路 15 min

I run VSC in the browser and I am just fine - Part I

Introduction Serverless and managed things are the best choices if you don鈥檛 want to deal with infrastructure (3 2 1: fight) buuuuut鈥ven immutable things are not so bad for this purpose - at least, if they are immutable for real 馃ぃ Today I wanna talk about a useful way to run an instance(s) of VSC server in AWS and code from everywhere (yes, even your iPad): let鈥檚 start! This time I will go native: so no CDK, I鈥檓 sorry, but pure Cloudformation instead....

June 25, 2019 路 10 min

A serverless OCR with Polly and Rekognition unveils the power of stack inheritance in CDK

Introduction In the last two weeks, I released a few CDK stacks: I made some experiments around API Gateway and service integration that came out in two serverless forms, the Contact Form and the Upload Form, read to be deployed in your static web page 馃槑. Actually, with CDK you can do so much more and so much more easily. The last stack I released - a producer-consumer chain presented here - it was a way I used to introduce how you can leverage Typescript inheritance to recycle an old stack and build on top of it....

June 13, 2019 路 8 min

SQS Extended: a serverless producer/consumer chain

Introduction A few days ago I wrote about a simple stack that leverage API Gateway and Lambda-proxy integration to create a safe upload endpoint to let unknown users push inside a bucket of your choice. The stack I will present today is can be used to build a producer-consumer chain, by implementing the SQS Extended pattern you can find in AWS exams. For the most curious, here you can find the core code....

June 4, 2019 路 5 min

Build an upload form with 45 lines of Typescript

Introduction The AWS CDK is becoming day by day pretty easy to use. I use Typescript, and today I will talk about a common use case: a simple Upload Endpoint for your API Gateway than like a LEGO can be built with a few instructions and of course鈥ithout the need of any server. For the most curious, here you can find the core code. Scenario You want to provide an endpoint to upload object: where?...

May 29, 2019 路 6 min

How to deploy a serverless contact form with API Gateway, DynamoDB and SNS

Introduction Hi everybody, thanks for the claps, it was a great month - rain rain rain again - now I鈥檓 back. The only GOOD THING of this terrible May is that AWS CDK came to simplify our life and I started using it (just a little) bit - still, enough to say, sincerely: it鈥檚 awesome. I used the Typescript version, everything is broken 2 release out of 3 but the time you save exploring the interfaces instead of looking for Cloudformation documentation online worths the time spending in troubleshooting the ongoing changes....

May 23, 2019 路 6 min

From Cloudformation to CDK: the good, the bad and the evil

Prelude As you know might be aware of, AWS has quite recently delivered - but it鈥檚 still in beta - the AWS Cloud Development Kit (CDK). Indeed, you should also know that I more recently migrated my blog to AWS as part of my migration strategy to the clouds - where my head already sits since 1991. Since I was using a Cloudformation stack though together with one of my colleagues, and since I did some manual changes to it - breaking the rules, I know - I decided it was a good moment to give a chance to CDK....

March 25, 2019 路 14 min

GraphQL is the new black

Prelude GraphQL is an open-source data query and manipulation language for APIs and a runtime for fulfilling queries with existing data. GraphQL was developed internally by Facebook in 2012 before being publicly released in 2015 because - believe me or not - it was quite tricky for them dealing with their schema. It allows clients to define the structure of the data required, and exactly the same structure of the data is returned from the server, therefore preventing excessively large amounts of data from being returned....

March 5, 2019 路 1 min

A serverless blog using CodePipeline, s3 and CloudFront

Goodbye old blog 馃槶馃槶 I disapperead for a while because as you should notice, first of all - I have a new domain. HAHA. It鈥檚 not the first one I own, but to be honest it鈥檚 the first time I use a domain for myself. So as I was saying yes, this post is about a migration. Morever, since this is the very first cross platform cross domain blog post - I want to share with you what I learnt and what is still missing, how I did what I did but mainly how someelse did what I didn鈥檛....

February 24, 2019 路 8 min

A Golang Turing machine library

Preamble In 1962, Hungarian mathematician Tibor Rad贸 introduced the Busy Beaver competition for Turing machines: in a class of machines, find one which halts after the greatest number of steps when started on the empty input. Even if it could seem trivial, the Busy Beaver competition has implications in computability theory, the halting problem, and complexity theory. I decided to use GoLang to implement a Turing machine library and accomplish three goals: first, having a Turing Machine model to play with for learning purpose; second, learning how to use interfaces and the factory pattern, other then testing package to test my code and let it be more flexible for future enhancement (at least I hope!...

January 19, 2019 路 9 min