Microservice’s independent scaling can improve overall performance. But how, and how much ? – Part 2, different minimum computing resource

In previous article we brought up the question, and we had a conclusion: In this article we’ll example how it is like if the services have different minimum computing resources TL;DR See conclusion Method and Assumptions The methods and assumptions are basically the same as previous article . Difference is A and B here will …

Microservice’s independent scaling can improve overall performance. But how, and how much ? – Part 2, different minimum computing resource Read More »

Microservice’s independent scaling can improve overall performance. But how, and how much ?

People say if you separate services and let them scale independently, you can will get better performance by allocating what’s needed and no computation resources will be wasted. But how exactly? And how much gain will there be compared to a monolithic solution? This article will do a quantified research. TL;DR See conclusion Method Let’s …

Microservice’s independent scaling can improve overall performance. But how, and how much ? Read More »

Using a Lambda-based serverless solution is like having a dinner in multi, appointed restaurants

Using a EC2/ECS/BeanStalk – based solution is like having a dinner in a single restaurant. You eat the appetiser, the main dish and then leave = You build your web app and deploy it in a friendly container. But if you use a lambda-based solution, Dining Cloud behaviour Appetiser in a restaurant A Put AWS …

Using a Lambda-based serverless solution is like having a dinner in multi, appointed restaurants Read More »

Update s3-hosted lambda function code without cloudformation

You need to do 2 things: Copy your code to S3 bucket. Don’t need a new object key in the bucket. Just use the existing one Invoke aws-cli’s “aws lambda update-function-code”, by putting s3 bucket /s3 key in the command line Then the function will be updated. You have to do 2nd step because “s3 …

Update s3-hosted lambda function code without cloudformation Read More »

Use git flow (avh) + npm version together

Feature -> Release Action Branches and their versions (before) CLI commands Branches and their versions (after) More details Start a feature develop: 1.0.0-SNAPSHOT.0master: 1.0.0-SNAPSHOT.0 git flow feature start xxxgit flow feature publish xxx feature/xxx: 1.0.0-SNAPSHOT.0develop: 1.0.0-SNAPSHOT.0master: 1.0.0-SNAPSHOT.0 Or just branch from develop Finish a feature feature/xxx: 1.0.0-SNAPSHOT.0develop: 1.0.0-SNAPSHOT.0master: 1.0.0-SNAPSHOT.0 git flow feature finish xxx develop: …

Use git flow (avh) + npm version together Read More »

Code: Download file from backend in an AJAX manner (Typescript)

User story: The backend sends back a file for you to download, using headers such as “Content-Disposition” and “Content-Type: application/pdf” Upon request, the browser will download the file for me in an AJAX manner, so I can show a progress bar If backend sends an error in JSON format, I want to see the error …

Code: Download file from backend in an AJAX manner (Typescript) Read More »