SlideShare a Scribd company logo
GoingServerless
WITH AWS LAMBDA + NODEJS
JSJakartaJakarta JavaScript User Group
ABOUT ME
HI, I’M RIZA
riza@hacktiv8.com
facebook.com/rizafahmi
github.com/rizafahmi
medium.com/@rizafahmi22
@rizafahmi22
appscoast.id
Nov‘13
First Meetup
1.459
Members
26
Meetup Events

Held
100-ish
Attendees per month
meetup.com/JakartaJS
JSJakartaJakarta JavaScript User Group
Serverless NodeJS With AWS Lambda
https://meetup.com/JakartaJS
https://jakartajs-join.herokuapp.com
JSJakartaJakarta JavaScript User Group
Serverless
“ANewCloudComputingTrendThat
ChangesTheWayYouThinkAbout
WritingAndMaintainingApplications”
Tomasz Janczuk
Chief Architect for Webtasks at Auth0
ThePieces
Lambda
EC2
EC2 Container
Service
Elastic
Beanstalk
Lambda
WhatLambdaReallyIs
WhyYouShouldUseLambda
Auto Scaling
Secure
Autoscale
AutoscaleAllTheWay!
2010
2014 AWS Lambda
2016 Google Cloud Functions
Microsoft Azure Functions
2015 Webtask Rad
TonicDev
FunctionsServiceTimeline
APIGateway
Databases
OtherServices
“Serverless”Infrastructure
UseCases
ScalableAPI
ScheduledTasks
IndexingandSync
AutomationandiOT
Auditand
Notification
Pricing
Free Tier
1MRequest
3MSeconds
of compute time
LambdaFunction
Our very first
GettingStarted
ChooseYourWeapon
Triggers
WriteYourCode
1 'use strict';
2 console.log('Loading function');
3
4 exports.handler = (event, context, callback) 
=> {
5 let min = 1
6 let max = 10
7
8 let random_number = Math.floor(Math.random() *
9 max) + min
10 let mark = ""
11 for (let i=min; i<random_number; i
++)
12 mark = mark + "!"
13
14 callback(null, "Hello Bandung" + mark)
15 }
Zoomingintocode…
Settingitup!
Testit
ConnectingLambda
ToAPIGateway
CreateNewAPI
ConnectToLambdaFunction
Publishit
Testit
SlackBotServerless
AddSlackWebHookConfig
Serverless NodeJS With AWS Lambda
TheCode
1 const AWS = require('aws-sdk')
2 const db = new AWS.DynamoDB.DocumentClient({region: 'ap-southeast-1'})
3
4 exports.handler = (event, context, callback) 
=> {
5 console.log(event)
6 if (event.user_name) {
7 const params = {
8 Item: {
9 date: Date.now(),
10 user_name: event.user_name
11 },
12 TableName: 'report_log'
13 }
14 db.put(params, (err, data) 
=> {
15 context.succeed({
16 "response_type": "in_channel",
17 "text": "Hi " + event.user_name +"! It's time for standup meeting."
18 })
19 })
20 }
21 };
SettingUpTheDatabase
SettingUpTheDatabase
PermissionToUseTheDB
TheTrigger
Publishit
Hookit
Hookit
Runit
OurAutoscalingAndMaintenanceFreeBotIsFinished
NowLet’sBuildSkynet!
JSJakartaJakarta JavaScript User Group

More Related Content

PDF
First Step Into NodeJS World
PDF
AWS Lambda with ClaudiaJS
PDF
Styling Your React App
PDF
Why NodeJS
PDF
React Webinar With CodePolitan
PDF
Intro to Node.js
PPTX
Interoperability of components built with different frameworks
KEY
Using Backbone with CakePHP
First Step Into NodeJS World
AWS Lambda with ClaudiaJS
Styling Your React App
Why NodeJS
React Webinar With CodePolitan
Intro to Node.js
Interoperability of components built with different frameworks
Using Backbone with CakePHP

What's hot (20)

PPTX
Super tools to boost productivity in React dev env!
PDF
VueJS Best Practices
PDF
Brief Intro to Phoenix - Elixir Meetup at BukaLapak
PPTX
Web Based Development Introduction
PPTX
Lazy angular w/ webpack
PDF
SxSW 2015
PPSX
Node on Windows Azure
PDF
Wordpress as a Backend
PDF
WordPress as a Headless CMS - Bronson Quick
PDF
JS Framework Comparison - An infographic
PDF
Pump up the JAM with Gatsby
PDF
Tailwind CSS - KanpurJS
PDF
Rapidly Building and Deploying Scalable Web Architectures
PPTX
Confoo - Javascript Server Side : How to start
PPTX
NodeJS and what is actually does
PPTX
Introduction to Vue.js DevStaff Meetup 13.02
PDF
JS digest. May 2017
PPTX
Getting started with node.js
PPTX
Intro to Azure Webjobs
PDF
Testing Angular Applications - Jfokus 2017
Super tools to boost productivity in React dev env!
VueJS Best Practices
Brief Intro to Phoenix - Elixir Meetup at BukaLapak
Web Based Development Introduction
Lazy angular w/ webpack
SxSW 2015
Node on Windows Azure
Wordpress as a Backend
WordPress as a Headless CMS - Bronson Quick
JS Framework Comparison - An infographic
Pump up the JAM with Gatsby
Tailwind CSS - KanpurJS
Rapidly Building and Deploying Scalable Web Architectures
Confoo - Javascript Server Side : How to start
NodeJS and what is actually does
Introduction to Vue.js DevStaff Meetup 13.02
JS digest. May 2017
Getting started with node.js
Intro to Azure Webjobs
Testing Angular Applications - Jfokus 2017
Ad

Viewers also liked (20)

PDF
Team 101: How to Build The A Team For Your Startup
PPTX
Sony lazuardi native mobile app with javascript
PDF
Meteor Talk At TokoPedia
PDF
Mobile Programming - Network Universitas Budi Luhur
PDF
APPSCoast Pitch Deck
PDF
Muhammad azamuddin introduction-to-reactjs
PDF
React Fundamentals - Jakarta JS, Apr 2016
PDF
Fellow Developers, Let's Discover Your Superpower
PDF
Mobile Programming - 3 UDP
PPTX
Basic Operating System
PDF
재사용UI 컴포넌트설계
PDF
NodeJS for Beginner
PDF
[141] react everywhere
PDF
Angular 2 vs React. What to chose in 2017?
PPTX
[123] electron 김성훈
PDF
Front-End 개발의 괜찮은 선택 ES6 & React
PPTX
React in Native Apps - Meetup React - 20150409
PDF
React Native를 사용한
 초간단 커뮤니티 앱 제작
PDF
Facebook은 React를 왜 만들었을까?
PDF
ReactJS로 시작하는 멀티플랫폼 개발하기
Team 101: How to Build The A Team For Your Startup
Sony lazuardi native mobile app with javascript
Meteor Talk At TokoPedia
Mobile Programming - Network Universitas Budi Luhur
APPSCoast Pitch Deck
Muhammad azamuddin introduction-to-reactjs
React Fundamentals - Jakarta JS, Apr 2016
Fellow Developers, Let's Discover Your Superpower
Mobile Programming - 3 UDP
Basic Operating System
재사용UI 컴포넌트설계
NodeJS for Beginner
[141] react everywhere
Angular 2 vs React. What to chose in 2017?
[123] electron 김성훈
Front-End 개발의 괜찮은 선택 ES6 & React
React in Native Apps - Meetup React - 20150409
React Native를 사용한
 초간단 커뮤니티 앱 제작
Facebook은 React를 왜 만들었을까?
ReactJS로 시작하는 멀티플랫폼 개발하기
Ad

Similar to Serverless NodeJS With AWS Lambda (20)

PPTX
Going serverless with aws lambda
PDF
Serverless architectures-with-aws-lambda
PDF
AWS Lambda and Serverless framework: lessons learned while building a serverl...
PDF
Serverless presentation
PDF
The future will be Serverless (FrontConf Munich 2017)
PPTX
awslambda-240508203904-07xsds253491.pptx
PDF
Serverless Empowering people
PDF
Serverless Node.js
PDF
Contruyendo tu primera aplicación con AWS
PPTX
AWS Serverless with Lambda, ApiGateway
PDF
Introduction to Serverless with AWS Lambda
PDF
Exploring Serverless Architectures: AWS Lambda
PDF
Run Code, Not Servers: AWS Lambda
PPTX
Primeros pasos en desarrollo serverless
PDF
Serverless Architecture - A Gentle Overview
PDF
Let's set the record straight on the term serverless and what it’s not
PPTX
Real World Serverless
PDF
Building serverless apps with Node.js
PDF
State of serverless
PDF
Serverless use cases with AWS Lambda - More Serverless Event
Going serverless with aws lambda
Serverless architectures-with-aws-lambda
AWS Lambda and Serverless framework: lessons learned while building a serverl...
Serverless presentation
The future will be Serverless (FrontConf Munich 2017)
awslambda-240508203904-07xsds253491.pptx
Serverless Empowering people
Serverless Node.js
Contruyendo tu primera aplicación con AWS
AWS Serverless with Lambda, ApiGateway
Introduction to Serverless with AWS Lambda
Exploring Serverless Architectures: AWS Lambda
Run Code, Not Servers: AWS Lambda
Primeros pasos en desarrollo serverless
Serverless Architecture - A Gentle Overview
Let's set the record straight on the term serverless and what it’s not
Real World Serverless
Building serverless apps with Node.js
State of serverless
Serverless use cases with AWS Lambda - More Serverless Event

More from Riza Fahmi (20)

PDF
Membangun Aplikasi Web dengan Elixir dan Phoenix
PDF
Berbagai Pilihan Karir Developer
PDF
Web dan Progressive Web Apps di 2020
PDF
Remote Working/Learning
PDF
How to learn programming
PDF
Rapid App Development with AWS Amplify
PDF
Menguak Misteri Module Bundler
PDF
Beberapa Web API Menarik
PDF
MVP development from software developer perspective
PDF
Ekosistem JavaScript di Indonesia
PDF
Perkenalan ReasonML
PDF
How I Generate Idea
PDF
Strategi Presentasi Untuk Developer Workshop Slide
PDF
Lesson Learned from Prolific Developers
PDF
Clean Code JavaScript
PDF
The Future of AI
PDF
Chrome Dev Summit 2018 - Personal Take Aways
PDF
Essentials and Impactful Features of ES6
PDF
Modern Static Site with GatsbyJS
PDF
Introduction to ReasonML
Membangun Aplikasi Web dengan Elixir dan Phoenix
Berbagai Pilihan Karir Developer
Web dan Progressive Web Apps di 2020
Remote Working/Learning
How to learn programming
Rapid App Development with AWS Amplify
Menguak Misteri Module Bundler
Beberapa Web API Menarik
MVP development from software developer perspective
Ekosistem JavaScript di Indonesia
Perkenalan ReasonML
How I Generate Idea
Strategi Presentasi Untuk Developer Workshop Slide
Lesson Learned from Prolific Developers
Clean Code JavaScript
The Future of AI
Chrome Dev Summit 2018 - Personal Take Aways
Essentials and Impactful Features of ES6
Modern Static Site with GatsbyJS
Introduction to ReasonML

Recently uploaded (20)

PDF
Modernizing your data center with Dell and AMD
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Machine learning based COVID-19 study performance prediction
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
KodekX | Application Modernization Development
PDF
Electronic commerce courselecture one. Pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Approach and Philosophy of On baking technology
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Modernizing your data center with Dell and AMD
Review of recent advances in non-invasive hemoglobin estimation
Machine learning based COVID-19 study performance prediction
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Network Security Unit 5.pdf for BCA BBA.
MYSQL Presentation for SQL database connectivity
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
KodekX | Application Modernization Development
Electronic commerce courselecture one. Pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Approach and Philosophy of On baking technology
GamePlan Trading System Review: Professional Trader's Honest Take
The Rise and Fall of 3GPP – Time for a Sabbatical?
20250228 LYD VKU AI Blended-Learning.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
The AUB Centre for AI in Media Proposal.docx
[발표본] 너의 과제는 클라우드에 있어_KTDS_김동현_20250524.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...

Serverless NodeJS With AWS Lambda