Quantcast
Channel: Learning the code way
Browsing latest articles
Browse All 231 View Live

Image may be NSFW.
Clik here to view.

Step Functions - AWS Service Integrations 2

In the previous post we successfully executed dynamo db, sqs and sns interactions directly from step functions. I wanted to try some tweaks to my state machine.Consider the SQS call from state...

View Article


Image may be NSFW.
Clik here to view.

Playing with the Paths of Step functions

AWS Step Functions work by moving from one state to another state. States need a way to communicate with each other - DATA needs to be passed between themAll such data needs to be JSON. From the docs...

View Article


Image may be NSFW.
Clik here to view.

Playing with ElastiCache

I have never used Elastic Cache yet. My caching use cases were solved either via an in memory cache or a hosted cache. I finally got the chance to venture beyond - to cloud caches.AWS offers two cache...

View Article

Image may be NSFW.
Clik here to view.

Playing with ElastiCache - 2

In the previous post we setup a basic Lambda function that wrote to Redis. I updated the function to log some Cloud Watch metrics.publicclassTokenBucketRefresherLambdaFnimplements...

View Article

Image may be NSFW.
Clik here to view.

REST + Dynamo = API Gateway

My use case is very straight forward - I have a table and I want to expose CRUD operations on the table - GET, ADD, DELETE, UPDATE.My solution would be to expose a REST interface to this table. The GET...

View Article


Image may be NSFW.
Clik here to view.

Dynamo Db APIs through API Gateway

In the last post, we setup a GET method for my table through API Gateway. I wanted to go ahead and setup the other methods - DELETE, PUT, POST.Ill start with the PUT method. PUT call on "/persons"...

View Article

Image may be NSFW.
Clik here to view.

Deploying API Gateway

In the last 2 posts, I have been working on setting up API access to my Dynamo Table through API Gateway. The next step would be to deploy the APIs:I decided to start with the GET method:API Gateway...

View Article

Image may be NSFW.
Clik here to view.

DAX - speeding/cheapening up Dynamo Db

Amazon DynamoDb comes with its own cache layer DAX or DynamoDB Accelerator. In this post I am going to play around with this feature.DAX as the AWS docs say provide 3 benefits:It's a cache - so the...

View Article


Image may be NSFW.
Clik here to view.

AWS Athena

I have been going through use cases where some basic analytics needed to be run on structured logs generated by our system. The way I did it till now, is to spin up an EMR cluster, load my logs on it...

View Article


More on DAX

In the previous post we setup a DAX client and tested the GetItem performance. This post will look at other DAX featuresBatchGetItem is also supported by DAX. DAX will fetch the items in Cache and for...

View Article

Dynamo Db's API Model

While doing a search for Dynamo Db get Item code, I came across several different code samples (obviously) and also realized a not so obvious thing - there are multiple ways to access Dynamo Db through...

View Article

Athena through API

In the last post, we setup tables and database for our s3 data on Athena and queries it through the AWS console. In this post, I will attempt the same thing through Java SDKThe post follows Amazon...

View Article

Image may be NSFW.
Clik here to view.

AWS EC2 - setting up an instance

Everything that can be written about EC2 has already been written. I however like to make my own short notes and will use this entry as my personal notebook on EC2.The definition for EC2 from aws docs:...

View Article


Image may be NSFW.
Clik here to view.

EC2 and networking

In the previous post, we setup an EC2 instance. I wanted to play around with the configurations available here.This is the host we created in the last post. The instance type and AMI is as selected...

View Article

Image may be NSFW.
Clik here to view.

EC2 and security groups

In the previous post we setup an EC2 instance and tried to connect it using SSH: ssh -i ~/Desktop/test-burner-pair.pem ec2-54-237-224-254.compute-1.amazonaws.comssh: connect to host...

View Article


Image may be NSFW.
Clik here to view.

Container Deployments - some basic concepts and EKS

I came across AWS's container solutions - EKS. But I realized that to move forward, I actually needed a primer on Containers. The post is a revision on Containerization. I have liberally copied of the...

View Article

Image may be NSFW.
Clik here to view.

Dynamo Db - Good To Remember stuff

Post is a collection of interesting pointers on the working of Dynamo Db. I wanted to have them in a single place as a ready referenceDynamoDB is a key value database.A key-value database stores data...

View Article


Image may be NSFW.
Clik here to view.

Dynamo Db - locks

When I studies Databases in college, we learnt the concept of locksA database lock is used to “lock” some data in a database so that only one database user/session may update that particular data. So,...

View Article

Image may be NSFW.
Clik here to view.

Dynamo Db - locks continued

In the last post I used optimistic locking with the Version attribute provided by DynamoDBMapper. Here I am going to look at the pessimistic locking methodPessimistic locking techniques require us to...

View Article

Image may be NSFW.
Clik here to view.

Amazon ECS : My first AWS container - Part 1

I had done a post sometime back on Container basics and AWS. Here I will explore ECS - another Container offering from AWSIn Pre Container days when Virtual Machines was the craze, AWS provided EC2...

View Article

Image may be NSFW.
Clik here to view.

Amazon ECS : My first AWS container - Part 2

In the previous post we created a container image for our code and pushed the image onto ECR. In this post, we will setup an ECS applicationGoing back to ECS console, the first step is to configure the...

View Article


Image may be NSFW.
Clik here to view.

An SNS primer - also Auto Routing SNS messages to different SQS

 It is a standard decoupling pattern to have publishers send their messages to an SNS owned by them. Consumers will setup SQS endpoints that subscribe to SNS and get the messages. However consider that...

View Article


Image may be NSFW.
Clik here to view.

AWS CloudFormation - my first stack

Before I start - CloudFormation is by far one of the weirdest and coolest things to have come out of AWS. It took me some time to grasp it (and am still grasping) but mann its awesome for AWS users....

View Article

CDK - Making CloudFormation easier

 In the previous post I created my first AWS Resource using AWS CloudFormation. This was done using a JSON file called the CloudFormation template.While CloudFormation makes it possible to codify our...

View Article

CDK - Diving deeper into the code

In the last post we setup a simple CDK project that resulted in creation of dynamodb table. Let us analyze the code further. Starting from where the code begins: const app =new cdk.App();From AWS Docs:...

View Article

Browsing latest articles
Browse All 231 View Live