When you think of a backend or server developer, who comes to mind? ๐ค
A wizard of arcane magics. The keeper of kingdoms. The holder of keys to Getting Data and Scaling Things and API Design and Modeling Domains.
They use weird technologies like Java and Go, wax poetic about Rust and never use it, cry and joke about kubernetes and docker. They write bash scripts that will make your eyes bleed.
After weeks in the configuration dungeon, only then shall you be allowed to write application logic
Serverless Handbook for Frontend Engineers โย free chapter
Dive modern backend. Understand any backend.
Serverless Handbook taught me high-leveled topics. I don't like recipe courses and these chapters helped me to feel like I'm not a total noob anymore.
The hand-drawn diagrams and high-leveled descriptions gave me the feeling that I don't have any critical "knowledge gaps" anymore.
~ Marek C, engineer
Start with a free chapter and email crash course โค๏ธ
The modern backend is a JavaScript function
Towers of configuration are nice in a masochistic sort of way. Hard work rewarded by a brittle pile of jenga that keels over when you sneeze.
Perfection.
If the configuration dungeon is not your jam, here's what you can do instead:
export const handler = async () => {return {statusCode: 200,body: "Hello ๐",}}
Yep, that's backend code. A JavaScript function that runs in the cloud.
Providers like Netlify and Vercel call it a "cloud function", AWS likes the term "Lambda".
It is the whole backend. No routing code, no boilerplate, no fuss.
Runtime on demand
Deploy your function and you get a live URL like this https://z7pc0lqnw9.execute-api.us-east-1.amazonaws.com/dev/hello. Click that link and your platform handles the rest:
- API Gateway accepts the request
- Routes to the right server
- Server wakes up from the dead
- Runs your function
- API Gateway returns the response
Your server doesn't just wake up from the dead, your server comes into being on demand. A whole new machine configured just for you and your request.
Fast.
That's the first request in days if not months. Fraction of a second.
The Hello ๐ lambda lives to serve as an example in my new book. You can try it and see that it's fast.
And yes, you can make it even faster. But then it isn't as free when nobody's clicking.
Infrastructure as code
The config for all this? 5 lines of code โ๏ธ
Code is the key word. Specifics in a future email, but the code part is important.
With infrastructure as code your environment definitions live alongside your application code. Part of the same review process, the same version control, the same skills.
Write instructions in a file, deploys follow them perfectly. Every time. Computers are great at that ๐
Better yet, you can make copies!
New engineer joins the team? yarn deploy and they get a full copy of your production environment to test with.
New pull request? GitHub Action and you get a full live copy of your environment for that piece of code. Test away.
Need to test 2 big features in parallel? Deploy twice from different branches. โ๏ธ
It's dreamy.
What this means for the future
The future belongs to full-stack frontend engineers.
Folks like you my friend who use their existing skills to own whole features, build big products, and go where their code makes the biggest difference.
If you can JavaScript, you can backend.
Cheers,
~Swizec
PS: don't forget, I'm hosting a Serverless live Q&A on Monday
Want to dive into serverless? Not sure where to begin?
Serverless Handbook was designed for people like you getting into backend programming.
360 pages, 19 chapters, 6 full projects, hand-drawn diagrams, beautiful chapter art, best-looking cover in tech. โ๏ธ
Learn how to choose the right database, write cloud functions, think about scalability, gain the architecture mindsets for robust systems, and more.
Leave your email to start with a free chapter and email crash course ๐
Serverless Handbook for Frontend Engineers โย free chapter
Dive modern backend. Understand any backend.
Serverless Handbook taught me high-leveled topics. I don't like recipe courses and these chapters helped me to feel like I'm not a total noob anymore.
The hand-drawn diagrams and high-leveled descriptions gave me the feeling that I don't have any critical "knowledge gaps" anymore.
~ Marek C, engineer
Start with a free chapter and email crash course โค๏ธ
Have a burning question that you think I can answer?ย I don't have all of the answers, but I have some! Hit me up on twitter or book a 30min ama for in-depth help.
Ready to Stop copy pasting D3 examples and create data visualizations of your own? ย Learn how to build scalable dataviz components your whole team can understand with React for Data Visualization
Curious about Serverless and the modern backend? Check out Serverless Handbook, modern backend for the frontend engineer.
Ready to learn how it all fits together and build a modern webapp from scratch? Learn how to launch a webapp and make your first ๐ฐ on the side with ServerlessReact.Dev
Want to brush up on your modern JavaScript syntax?ย Check out my interactive cheatsheet: es6cheatsheet.com
By the way, just in case no one has told you it yet today: I love and appreciate you for who you areย โค๏ธ