AWS the Good Parts – A Summary

The good parts of AWS - A visual summary

January 18, 2020

What database should we use ? What is the best hosting option ? Which AWS services should we use and which ones should we avoid ?

With the multiplication of online services, technical choices can get very time consuming. No one has the time to test every available service in order to make the right choice. The good parts of AWS , an Ebook by Daniel Vassallo and Josh Pschorr , gives an insider view of some of the multiple AWS services. The goal is to help the reader find his own default choices when faced with a technical decision.

In this summary I’ll just scratch the surface of some of the Do’s and Don’ts that are provided in the Ebook. The Ebook contains a lot more details, examples and insider explanations of these services. You can see the complete table of content and get the Ebook here .

DynamoDB

DynamoDB is a non-relational database that has two main features : it’s immediately consistent and highly- durable (unlike Redis).

:arrow_up_small:️important choice factor

Unlike relational databases, DynamoDB requires data operations (aggregations, filtering, sorting ..) to be done by your application. → All data needs to be sent over the network.

:arrow_up_small:️important choice factor

Request pricing : It depends on the frequency of requests you are expecting ($1.25 per million writes, $0.25 per million reads) - Do the math.

:arrow_down_small:less important choice factor

Storage pricing : which is ~10 times higher than S3.

:left_right_arrow:You'll have to choose

Between on-demand option (no capacity management) or provisioned option (cheaper).

:-1:Avoid

using local indexes.

S3

:+1:We like

Storage cost : S3 has very interesting storage cost ($23.55/TB/month)

⚠︎Be careful

with request pricing when you have a very high number of requests (non-human frequency).

⚠︎Be careful

Needs update buffering if objects change frequently (log files).

:-1:Avoid

using reduced redundancy.

:-1:Avoid

using S3 for static web hosting (No HTTPS).

EC2

:+1:We like

You get an environment that is similar to your computer's environment

:left_right_arrow:You'll have to choose

an instance type depending on what 's important for you (CPU memory, storage, etc.).

:-1:Avoid

reserved instances you can use EC2 saving plans instead.

:scream:Scary

With EC2 you'll have to handle security configurations. You can start with the defaults or use the Ebook's bootstrap guide section to create a secure architecture.

:+1:You should use

EC2 Auto Scaling . It offers great features like health checks

that will automatically replace your EC2 instance if it goes down.

Lambda

:white_check_mark:Do

use it as a plugin for other AWS services. For example for processing an image after uploading it to S3 or to send alert after a regex trigger on Cloudwatch (AWS logging service).

:-1:Do not

use AWS Lambda as a general EC2 host.

⚠︎Limitation

If you need to access a "state" for example by connecting to DynamoDB, it can get very expensive.

SQS & Kinesis

You can use either SQS or Kinesis when you have a queue of asynchronous processes that you need to consume.

SQS Kinesis
Strict Ordering :x: :white_check_mark:
No Duplicates :x: :white_check_mark:
Number of consumers 1 Unlimited
Capacity management and limits :+1: No capacity management Needs shard monitoring
Cost for 1Kb x 500 messages / day $34.56 $0.96
Underlying data structure multiple queues like a durable linked list

:+1:Good to know

SQS has an option called FIFO. You get strict ordering and no duplicates but you'll have a limit of 300 messages per second.

ELB

ALB - Application Load Balancer NLB - Network Load Balancer
How Proxies HTTP requests Routes network packets
TLS/HTTPS :white_check_mark: :white_check_mark:
TCP passthrough :x: :white_check_mark:
reverse proxy features :white_check_mark: :x:
Scale Don’t scale fast enough :white_check_mark:
Cost - Slightly less expensive
Speed - A few milliseconds faster
Advice If you need specific ALB features

:+1:Start with NLB

Discuss on Twitter

我来评几句
登录后评论

已发表评论数()

相关站点

+订阅
热门文章