reading-notes

Notes for Codefellows Code 401 301 201 and 102

Readings Class 19: AWS: Events

Describe the similarities between AWS API Gateway + Lambda functions and an ExpressJS Server

source

List the AWS Database offerings and talk about the pros and cons of each

What’s the difference between a FIFO and a standard queue?

aws

FIFO queues have essentially the same features as standard queues, but provide the added benefits of supporting ordering and exactly-once processing. FIFO queues provide additional features that help prevent unintentional duplicates from being sent by message producers or from being received by message consumers

How can the server be assured a message was properly received?

stackoverflow

TCP/IP cannot guarantee that all data that have been sent will also be received. But even if it would guarantee it that is not what you need. What sender actually needs is to know if it does not have to send data again, and that usually implies if sent data has been processed on receivers side. If sender needs to know this then communication protocol must be changed so that sender can receive a confirmation by the receiver that it can safely assume that data has been processed. Also, sender must at certain point proclaim a time-out (and close the socket) if receiver did not send back the confirmation on time (and in your code you must decide what to do about it, maybe save data to be sent at later time, or raise an alert to the user). Also receiver must handle the situation where the same data is being sent twice (as last item in previous connection, and as another item in new connection) and not treat this data as two distinct pieces of data.

Document the following Vocabulary Terms

Serverless API

source

Serverless is a cloud computing execution model where the cloud provider dynamically manages the allocation and provisioning of servers. A serverless application runs in stateless compute containers that are event-triggered, ephemeral (may last for one invocation), and fully managed by the cloud provider.

Triggers

source Triggers are pieces of code that will automatically respond to an event.

Dynamo vs Mongo

source MongoDB is vendor agnostic, Open Source, and can be deployed anywhere. DynamoDB is only available on AWS. DynamoDB is a fully managed AWS service, MongoDB can be self installed or fully managed with MongoDB Atlas. DynamoDB as an integrated AWS service makes it easier to develop end to end solutions. DynamoDB uses tables, items and attributes, MongoDB uses JSON-like documents. DynamoDB supports limited data types and smaller item sizes; MongoDB supports more data types and has fewer size restrictions. Dynamo is hosted by AWS. Both are non-relational databases.

Dynamoose vs Mongoose

source they are basically the same but Dynamoose is the controller shell for DynamoDB and Mongoose is the controller shell for MongoDB.

Preview

Skim the following materials in preparation for the upcoming lecture. Note the following as you browse the material, and be prepared to participate in discussions during lecture

Preparation Materials

Bookmark