It supports both key-value entries and documents.
That means that a field can contain a single value, such as a string or a number, but can also contain a document, i.e. a JSON-object.
🔹 DynamoDB (2/3)
It's schemaless, so besides a key, it doesn't rely on a predefined schema.
You can think of this as a combination of relational and document-based databases such as MongoDB.
🔹 DynamoDB (3/3)
It's fully managed by AWS, so you don't need a server running to host the database.
This enables extremely high flexibility when it comes to up- and down-scaling your solution.
GraphQL is a query language and an alternative to SQL and MySQL.
With GraphQL we can specify exactly what we need and the relation between the data coming from the backend, all in a single request.
AWS has a solution called AppSync which enables you to create a managed GraphqQL layer to securely access, write and combine data from one or more data sources.
You can link a DynamoDB table as a data source directly, without having to write custom resolvers.
🔹 GraphQL (3/3)
AWS AppSync is again fully managed, so you don't need a server running your GraphQL API.
Additionally, you can easily configure authentication based on an API-Token or OAuth 2.
AWS Lambda functions enable you to write the entire Back-End using individual functions that run in the Cloud.
This is an extremely powerful alternative to managing and provisioning servers for your Back-End.
🔹 AWS Lambda (2/2)
Even though you can link a DynamoDB table as a data source directly using AppSync, you typically need a bit more custom resolver-logic.
Fortunately, you can use Lambda as a data source as well.
This allows us to write custom resolvers when needed.
🔸 React (1/2)
React is a JavaScript library for building user interfaces.
It's especially powerful for writing Single Page Applications.
It's very little likely that you haven't heard of it already, but if not, I'll drop a link to their website here.
🔸 React (2/2)
By far the easiest way to get started with a new React App, is not use create-react-app.
It comes with a comprehensive toolchain for both developing, bundling, and shipping your React App. reactjs.org/docs/create-a-…
🔸 Static hosting in AWS S3 (1/2)
S3 is a storage service in AWS.
We will host our application using AWS S3.
After we have used create-react-app to build our React App, we will simply upload it to an S3 bucket where the static files can be accessed.
🔸 Static hosting in AWS S3 (2/2)
AWS CloudFront is a blazing fast Content Delivery Network, and we will use this to direct traffic from our domain to the S3 Bucket.
This offers additional capabilities in regards to caching, load balancing, and more.
🔵 AWS Amplify (1/2)
AWS Amplify is a framework that enables us to integrate a lot of the things we have covered so far.
With AWS Amplify we can quickly create a stack, add authentication, add a GraphQL API using AppSync, and host the app using S3 and CloudFront.
🔵 AWS Amplify (2/2)
AWS Amplify is CLI-based and will get you started with a cloud-powered app in minutes (literally).
The biggest takeaway from this stack is that it's serverless!
🔥 No need to manage servers.
🔥 Pay-per-use instead of paying for uptime.
🔥 Serverless is inherently scalable.
🔥 Reducing cost.
🔥 Energy-efficient, ultimately better for the climate.
If you want more details about AWS and Serverless, and how we applied this architecture while building FeedHive - then check out this YouTube video 👇
I hope you learned something new.
Please, go back to the first tweet and give it a like 🧡 and retweet 🔁.
• • •
Missing some Tweet in this thread? You can try to
force a refresh
Did you know that Slack started out as an online game made in Flash? 😳
How did they go from a Flash game to a $630M ARR SaaS?
Let's take a look 👇🧵
"Never mind the part where we first tried to make a web-based massively multiplayer game and failed" - the Co-Founder of Slack says.
They spent almost 4 years working on that game.
Today, Slack is valuated to $5B.
Let's see what we can learn from Slack 👇
🔹 They took their own medicine
Slack became their own first users.
They had been using IRC while developing Glitch, the Flash-based game, and the team appreciated how this chat-based communication channel allowed them to work more focused and productive.