In this session we’ll take a high-level overview of AWS Lambda, a serverless compute platform that has changed the way that developers around the world build applications. We’ll explore how Lambda works under the hood, the capabilities it has, and how it is used. By the end of this talk you’ll know how to create Lambda based applications and deploy and manage them easily.
Speaker: Chris Munns - Principal Developer Advocate, AWS Serverless Applications, AWS
What is AWS?
Most Popular AWS Products
What is Serverless Architecture?
Asynchronous Serverless Model
Synchronous Serverless Model
Amazon Lambda
https://notebookbft.wordpress.com/
Do you want to run your code without the cost and effort of provisioning and managing servers? Find out how in this deep dive session on AWS Lambda, which allows you to run code for virtually any type of application or back end service – all with zero administration. During the session, we’ll look at a number of key AWS Lambda features and benefits, including automated application scaling with high availability; pay-as-you-consume billing; and the ability to automatically trigger your code from other AWS services or from any web or mobile app.
Presentation from the developer track at I Love APIs London 2016 featuring Matt McClean, Amazon Web Services.
Developers have been jumping on the microservices bandwagon because of the obvious benefits of faster release cycles and innovation. However, microservices' downside is the increased server costs, operational costs, and performance costs. To reduce this complexity, Amazon Web Services created AWS Lambda - a compute platform that lets you build microservices with no provisioning and servers.
Matt McClean, Solution Architect from AWS, presents how to use AWS Lambda to build your microservices. He covers various architectural patterns and anti-patterns for using AWS Lambda.
Learn about what a serverless architecture is, why they are growing in popularity, and who the key players are in a serverless API build on the AWS platform. Then get started building your own servless API!
AWS' philosophy and recommended best practices for building microservices applications, how AWS services like Lambda and API gateway benefit developers building microservices apps, and how customers are using these two and other AWS services to deliver their microservices apps
In this session we’ll take a high-level overview of AWS Lambda, a serverless compute platform that has changed the way that developers around the world build applications. We’ll explore how Lambda works under the hood, the capabilities it has, and how it is used. By the end of this talk you’ll know how to create Lambda based applications and deploy and manage them easily.
Speaker: Chris Munns - Principal Developer Advocate, AWS Serverless Applications, AWS
What is AWS?
Most Popular AWS Products
What is Serverless Architecture?
Asynchronous Serverless Model
Synchronous Serverless Model
Amazon Lambda
https://notebookbft.wordpress.com/
Do you want to run your code without the cost and effort of provisioning and managing servers? Find out how in this deep dive session on AWS Lambda, which allows you to run code for virtually any type of application or back end service – all with zero administration. During the session, we’ll look at a number of key AWS Lambda features and benefits, including automated application scaling with high availability; pay-as-you-consume billing; and the ability to automatically trigger your code from other AWS services or from any web or mobile app.
Presentation from the developer track at I Love APIs London 2016 featuring Matt McClean, Amazon Web Services.
Developers have been jumping on the microservices bandwagon because of the obvious benefits of faster release cycles and innovation. However, microservices' downside is the increased server costs, operational costs, and performance costs. To reduce this complexity, Amazon Web Services created AWS Lambda - a compute platform that lets you build microservices with no provisioning and servers.
Matt McClean, Solution Architect from AWS, presents how to use AWS Lambda to build your microservices. He covers various architectural patterns and anti-patterns for using AWS Lambda.
Learn about what a serverless architecture is, why they are growing in popularity, and who the key players are in a serverless API build on the AWS platform. Then get started building your own servless API!
AWS' philosophy and recommended best practices for building microservices applications, how AWS services like Lambda and API gateway benefit developers building microservices apps, and how customers are using these two and other AWS services to deliver their microservices apps
Slides for a short presentation I gave on AWS Lambda, which "lets you run code without provisioning or managing servers". Lambda is to running code as Amazon S3 is to storing objects.
[NEW LAUNCH!] Introducti[NEW LAUNCH!] Introduction to event-driven architectu...Amazon Web Services
Amazon EventBridge is a serverless event bus service that connects your applications with data from a variety of sources, including SaaS applications and AWS services. EventBridge makes it easy to build event-driven architectures, which are loosely coupled and distributed. In this session, we cover the basics of event-driven architectures, including common patterns and use cases with EventBridge. Hear from Datadog on how it is taking advantage of event-driven architectures to get a real-time end-to-end view of customers by using a Zendesk integration with EventBridge. Expect to leave with a solid understanding of how to use EventBridge to build scalable, resilient, event-driven applications.
by Kashif Imran, Sr. Solutions Architect, AWS
Serverless computing allows you to build and run applications without the need for provisioning or managing servers. With serverless computing, you can build web, mobile, and IoT backends; run stream processing or big data workloads; run chatbots, and more. In this session, you’ll learn how to get started with serverless computing with AWS Lambda, which lets you run code without provisioning or managing servers. We’ll introduce you to the basics of building with Lambda and how you can benefit from features such as continuous scaling, built-in high availability, integrations with AWS and third-party apps, and subsecond metering pricing. We’ll also introduce you to the broader portfolio of AWS services that help you build serverless applications with Lambda, including Amazon API Gateway, Amazon DynamoDB, AWS Step Functions, and more.
This talk will be a 2-300 level discussion on Serverless Architectures on AWS. We’ll first explore the Serverless ecosystem on AWS, looking at some particular use cases for Serverless. Looking through the lens of AWS customers, we’ll look at the typical Serverless journey, as well some of the key emerging patterns and benefits of Serverless Architectures. We’ll also touch some of the key challenges in a distributed environment and some potential solutions and tools that customers might want to consider.
Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. With a few clicks in the AWS Management Console, you can create an API that acts as a “front door” for applications to access data, business logic, or functionality from your back-end services, such as workloads running on Amazon Elastic Compute Cloud (Amazon EC2), code running on AWS Lambda, or any Web application. Amazon API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, authorization and access control, monitoring, and API version management.
Presented by: Danilo Poccia, Technical Evangelist, Amazon Web Services
Speaker spoke about features and benefits of the AWS Lambda service and explained how to increase system performance by using AWS services.
This presentation by Mykhailo Brodskyi (Senior Software Engineer, Consultant, GlobalLogic, Kharkiv), was delivered at GlobalLogic Kharkiv Java Conference 2018 on June 10, 2018.
Serverless Microservices Communication with Amazon EventBridgeSheenBrisals
The combination of cloud, serverless and microservices has taken the service implementation to a different level. Though this has accelerated the monolith to microservices transformation, it has also introduced new complexities around service-to-service communication. With every new service added to the system, the order of communications complexity also increases.
Though AWS services such as SNS, SQS and others helped to some extend, they however failed to offer a flexible way to enable filtered routing of messages between microservices. This is where Amazon’s EventBridge makes its mark in alleviating many of these concerns.
AWS EventBridge promotes a hub-and-spoke communication model between microservices. With its flexible and powerful message filtering capability, services can have a renewed way of performing event-driven communication between them. This talk will start by explaining EventBridge and then, with the help of real use-case scenarios, explain how to enable message routing and filtering while working with the event bus.
This AWS Tutorial ( Amazon AWS Blog Series: https://goo.gl/qQwZLz ) will give you an introduction to AWS and its domains. This AWS tutorial is ideal for those who want to become AWS Certified Solutions Architect.
Below are the topics covered in this tutorial:
1. What is Cloud?
2. What is AWS?
3. Different Domains in AWS
4. AWS Pricing
5. Migrate Your Application to AWS Infrastructure
6. Use case
#awstraining #cloudcomputing #awstutorial
Productionize Serverless Application Building and Deployments with AWS SAM - ...Amazon Web Services
Learning Objectives:
- Learn abou the SAM template design best practices (e.g., use of globals, mappings, parameters, and conditionals)
- Learn how to test and debug serverless applications with SAM Local
- Learn how to customize SAM itself with the open source SAM implementation
Amazon Web Services (AWS) provides on-demand computing resources and services in the cloud, with pay-as-you-go pricing. This session provides an overview and describes how using AWS resources instead of your own is like purchasing electricity from a power company instead of running your own generator. Using AWS resources provides many of the same benefits as a public utility: Capacity exactly matches your need, you pay only for what you use, economies of scale result in lower costs, and the service is provided by a vendor experienced in running large-scale networks. A high-level overview of AWS infrastructure (such as AWS Regions and Availability Zones) and AWS services is provided as part of this session.
Speaker: Tom Whateley, Solutions Architect and Stephanie Zieno, Account Manager, Amazon Web Services
Slides for a short presentation I gave on AWS Lambda, which "lets you run code without provisioning or managing servers". Lambda is to running code as Amazon S3 is to storing objects.
[NEW LAUNCH!] Introducti[NEW LAUNCH!] Introduction to event-driven architectu...Amazon Web Services
Amazon EventBridge is a serverless event bus service that connects your applications with data from a variety of sources, including SaaS applications and AWS services. EventBridge makes it easy to build event-driven architectures, which are loosely coupled and distributed. In this session, we cover the basics of event-driven architectures, including common patterns and use cases with EventBridge. Hear from Datadog on how it is taking advantage of event-driven architectures to get a real-time end-to-end view of customers by using a Zendesk integration with EventBridge. Expect to leave with a solid understanding of how to use EventBridge to build scalable, resilient, event-driven applications.
by Kashif Imran, Sr. Solutions Architect, AWS
Serverless computing allows you to build and run applications without the need for provisioning or managing servers. With serverless computing, you can build web, mobile, and IoT backends; run stream processing or big data workloads; run chatbots, and more. In this session, you’ll learn how to get started with serverless computing with AWS Lambda, which lets you run code without provisioning or managing servers. We’ll introduce you to the basics of building with Lambda and how you can benefit from features such as continuous scaling, built-in high availability, integrations with AWS and third-party apps, and subsecond metering pricing. We’ll also introduce you to the broader portfolio of AWS services that help you build serverless applications with Lambda, including Amazon API Gateway, Amazon DynamoDB, AWS Step Functions, and more.
This talk will be a 2-300 level discussion on Serverless Architectures on AWS. We’ll first explore the Serverless ecosystem on AWS, looking at some particular use cases for Serverless. Looking through the lens of AWS customers, we’ll look at the typical Serverless journey, as well some of the key emerging patterns and benefits of Serverless Architectures. We’ll also touch some of the key challenges in a distributed environment and some potential solutions and tools that customers might want to consider.
Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. With a few clicks in the AWS Management Console, you can create an API that acts as a “front door” for applications to access data, business logic, or functionality from your back-end services, such as workloads running on Amazon Elastic Compute Cloud (Amazon EC2), code running on AWS Lambda, or any Web application. Amazon API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, authorization and access control, monitoring, and API version management.
Presented by: Danilo Poccia, Technical Evangelist, Amazon Web Services
Speaker spoke about features and benefits of the AWS Lambda service and explained how to increase system performance by using AWS services.
This presentation by Mykhailo Brodskyi (Senior Software Engineer, Consultant, GlobalLogic, Kharkiv), was delivered at GlobalLogic Kharkiv Java Conference 2018 on June 10, 2018.
Serverless Microservices Communication with Amazon EventBridgeSheenBrisals
The combination of cloud, serverless and microservices has taken the service implementation to a different level. Though this has accelerated the monolith to microservices transformation, it has also introduced new complexities around service-to-service communication. With every new service added to the system, the order of communications complexity also increases.
Though AWS services such as SNS, SQS and others helped to some extend, they however failed to offer a flexible way to enable filtered routing of messages between microservices. This is where Amazon’s EventBridge makes its mark in alleviating many of these concerns.
AWS EventBridge promotes a hub-and-spoke communication model between microservices. With its flexible and powerful message filtering capability, services can have a renewed way of performing event-driven communication between them. This talk will start by explaining EventBridge and then, with the help of real use-case scenarios, explain how to enable message routing and filtering while working with the event bus.
This AWS Tutorial ( Amazon AWS Blog Series: https://goo.gl/qQwZLz ) will give you an introduction to AWS and its domains. This AWS tutorial is ideal for those who want to become AWS Certified Solutions Architect.
Below are the topics covered in this tutorial:
1. What is Cloud?
2. What is AWS?
3. Different Domains in AWS
4. AWS Pricing
5. Migrate Your Application to AWS Infrastructure
6. Use case
#awstraining #cloudcomputing #awstutorial
Productionize Serverless Application Building and Deployments with AWS SAM - ...Amazon Web Services
Learning Objectives:
- Learn abou the SAM template design best practices (e.g., use of globals, mappings, parameters, and conditionals)
- Learn how to test and debug serverless applications with SAM Local
- Learn how to customize SAM itself with the open source SAM implementation
Amazon Web Services (AWS) provides on-demand computing resources and services in the cloud, with pay-as-you-go pricing. This session provides an overview and describes how using AWS resources instead of your own is like purchasing electricity from a power company instead of running your own generator. Using AWS resources provides many of the same benefits as a public utility: Capacity exactly matches your need, you pay only for what you use, economies of scale result in lower costs, and the service is provided by a vendor experienced in running large-scale networks. A high-level overview of AWS infrastructure (such as AWS Regions and Availability Zones) and AWS services is provided as part of this session.
Speaker: Tom Whateley, Solutions Architect and Stephanie Zieno, Account Manager, Amazon Web Services
Serverless for Developers: Event-Driven & Distributed Apps - Pop-up Loft TLV ...Amazon Web Services
Serverless architectures simplify operations and maintenance of production applications, abstracting from the underlining infrastructure and OS. But what about development? In this session you will see some of the key points that can empower a serverless developer: from event-driven design, to simplification (less is more, especially for a small team), extending the functionalities of the platform (per prefix stats for S3, geohash for DynamoDB, API authentication, and so on), integrating new products.
AWS October Webinar Series - AWS Lambda Best Practices: Python, Scheduled Job...Amazon Web Services
AWS Lambda lets you run code without provisioning or managing servers. We have introduced a few new features this year at re:Invent and would like to share with you some of the best practices.
This webinar will introduce you to scheduled AWS Lambda functions and how to use long running functions to handle large volume data ingestion and processing jobs. We will demonstrate how to use versioning to control which Lambda function version is being executed in your development, testing, and production environments. We will also show you how to run your Python code in AWS Lambda.
With AWS Lambda, you can easily build scalable microservices for mobile, web, and IoT applications or respond to events from other AWS services without managing infrastructure. In this session, you’ll see demonstrations and hear more about newly launched features. We’ll show you how to use Lambda to build web, mobile, or IoT backends and voice-enabled apps, and we'll show you how to extend both AWS and third party services by triggering Lambda functions. We’ll also provide productivity and performance tips for getting the most out of your Lambda functions and show how cloud native architectures use Lambda to eliminate “cold servers” and excess capacity without sacrificing scalability or responsiveness.
With AWS Lambda, you can easily build scalable microservices for mobile, web, and IoT applications or respond to events from other AWS services without managing infrastructure. In this session, you’ll see demonstrations and hear more about newly launched features. We’ll show you how to use Lambda to build web, mobile, or IoT backends and voice-enabled apps, and we'll show you how to extend both AWS and third party services by triggering Lambda functions. We’ll also provide productivity and performance tips for getting the most out of your Lambda functions and show how cloud native architectures use Lambda to eliminate “cold servers” and excess capacity without sacrificing scalability or responsiveness.
Migrating your .NET Applications to the AWS Serverless PlatformAmazon Web Services
Windows and .NET-based workloads are first-class citizens on AWS. In this session, we show how you can easily move an existing .NET application to the AWS cloud and take advantage of it serverless capabilities. We will cover migration and architectural considerations for porting your C# application to AWS Lambda, and using API Gateway to create a façade for your application to safely make changes as you migrate.
Speakers:
Stephen Liedig, Public Sector Solutions Architect, Amazon Web Services
Shane Baldacchino, Solutions Architect, Amazon Web Services
This presentation is from the AWS Lambda session of Container Days Conference in NYC. AWS Lambda is a new compute service that runs your code in response to events and automatically and dynamically manages infra resources for you. Tara will talk about AWS's event-driven compute strategy and explain how Lambda works to respond to events from various Amazon services.
Tara will describe what you need to easily build scalable microservices for mobile, web, and IoT applications that use AWS Lambda as a serverless back-end, how you can expose these services using Amazon API Gateway, and how to extend both AWS and third party services by triggering Lambda functions. She'll also cover the updated Lambda features announced at reInvent 2015, its programming model, and tips on getting the most out of Lambda.
An introduction to serverless architectures (February 2017)Julien SIMON
An introduction to serverless
AWS Lambda
Amazon API Gateway
Demo: writing your first Lambda function
Demo: building a serverless pipeline
Additional resources
In the past few years a new computing revolution has been brewing - Functions as a Service - better known as Serverless Computing.
Whilst this is an extremely interesting and exciting technology, the largest provider (AWS) has yet to provide any native PHP support, leaving a huge number of developers with no access in their proficient language and preferred tooling.
However, all is not lost! This session will demonstrate how you can use PHP on AWS Lambda using the Serverless Framework with the same functionality as other natively supported languages. We will also discuss how it works, how it was built and also some of the current drawbacks and limitations of this approach.
With AWS Lambda, you can easily build scalable microservices for mobile, web, and IoT applications or respond to events from other AWS services without managing infrastructure. In this session, you’ll see demonstrations and hear more about newly launched features. We’ll show you how to use Lambda to build web, mobile, or IoT backends and voice-enabled apps, and we'll show you how to extend both AWS and third party services by triggering Lambda functions. We’ll also provide productivity and performance tips for getting the most out of your Lambda functions and show how cloud native architectures use Lambda to eliminate “cold servers” and excess capacity without sacrificing scalability or responsiveness.
AWS Lambda allows any Node.js app to be run at scale in a massively parallel environment with no up-front costs or planning. This session shows how to use Lambda to build dynamic analytic data flows that can be tuned as they execute, based on initial results, to provide real-time output streamed to web clients. This process enables a cost-effective and responsive user experience for ad hoc big data jobs and lets developers focus on how data is consumed and presented, instead of how it is obtained.
In this session, we will take a deep-dive into the DevOps process that comes with Azure Machine Learning service, a cloud service that you can use to track as you build, train, deploy and manage models. We zoom into how the data science process can be made traceable and deploy the model with Azure DevOps to a Kubernetes cluster.
At the end of this session, you will have a good grasp of the technological building blocks of Azure machine learning services and can bring a machine learning project safely into production.
When it comes to microservice architecture, sometimes all you wanted is to perform cross cutting concerns ( logging, authentication , caching, CORS, Routing, load balancing , exception handling , tracing, resiliency etc..) and also there might be a scenario where you wanted to perform certain manipulations on your request payload before hitting into your actual handler. And this should not be a repetitive code in each of the services , so all you might need is a single place to orchestrate all these concerns and that is where Middleware comes into the picture. In the demo I will be covering how to orchestrate these cross cutting concerns by using Azure functions as a Serverless model.
In this talk, we will start with some introduction to Azure Functions, its triggers and bindings. Later we will build a serverless solution to solve a problem statement by using different triggers and bindings of Azure Functions.
Language to be used: C# and IDE - Visual Studio 2019 Community Edition"
In this workshop, you will understand how Azure DevOps Services helps you scale DevOps adoption strategies in enterprise. We will explore various feature and services that can enable you to implement various DevOps practices starting from planning, version control, CI & CD , Dependency Management and Test planning.
In this session, we will understand how to create your first pipeline and build an environment to restore dependencies and how to run tests in Azure DevOps followed by building an image and pushing it to container registry.
In this session, we will discuss a use case where we need to quickly develop web and mobile front end applications which are using several different frameworks, hosting options, and complex integrations between systems under the hood. Let’s see how we can leverage serverless technologies (Azure Functions and logic apps) and Low Code/No code platform to achieve the goal. During the session we will go though the code followed by a demonstration.
CREATING REAL TIME DASHBOARD WITH BLAZOR, AZURE FUNCTION COSMOS DB AN AZURE S...CodeOps Technologies LLP
In this talk people will get to know how we can use change feed feature of Cosmos DB and use azure functions and signal or service to develop a real time dashboard system
Imagine a scenario, where you can launch a video call or chat with an advisor, agent, or clinician in just one-click. We will explore application patterns that will enable you to write event-driven, resilient and highly scalable applications with Functions that too with power of engaging communication experience at scale. During the session, we will go through the use case along with code walkthrough and demonstration.
We will walk through the exploration, training and serving of a machine learning model by leveraging Kubeflow's main components. We will use Jupyter notebooks on the cluster to train the model and then introduce Kubeflow Pipelines to chain all the steps together, to automate the entire process.
It is difficult to deploy interloop Kubernetes development in current state. Know these open-source projects that can save us from the burden of various tools and help in deploying microservices on Kubernetes cluster without saving secrets in a file.
Must Know Azure Kubernetes Best Practices And Features For Better Resiliency ...CodeOps Technologies LLP
Running day-1 Ops on your Kubernetes is somewhat easy, but it is quite daunting to manage day two challenges. Learn about AKS best practices for your cloud-native applications so that you can avoid blow up your workloads.
Prometheus is a popular open source metric monitoring solution and Azure Monitor provides a seamless onboarding experience to collect Prometheus metrics. Learn how to configure scraping of Prometheus metrics with Azure Monitor for containers running in AKS cluster.
What if you could combine Trello, GitLab, JIRA, Calendar, Slack, Confluence, and more - all together into one solution?
Yes, we are talking about Space - the latest tool from JetBrains famous for its developer productivity-enhancing tools (esp. IntelliJ IDEA).
Here we have explained about JetBrains' space and its functionalities.
This talk will serve as a practical introduction to Distributed Tracing. We will see how we can make best use of open source distributed tracing platforms like Hypertrace with Azure and find the root cause of problems and predict issues in our critical business applications beforehand.
This talk serves as a practical introduction to Distributed Tracing. We will see how we can make best use of open source distributed tracing platforms like Hypertrace with Azure and find the root cause of problems and predict issues in our critical business applications beforehand.
Presentation part of Open Source Days on 30 Oct - ossdays.konfhub.com
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamtakuyayamamoto1800
In this slide, we show the simulation example and the way to compile this solver.
In this solver, the Helmholtz equation can be solved by helmholtzFoam. Also, the Helmholtz equation with uniformly dispersed bubbles can be simulated by helmholtzBubbleFoam.
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar
The European Union Agency for Law Enforcement Cooperation (Europol) has suffered an alleged data breach after a notorious threat actor claimed to have exfiltrated data from its systems. Infamous data leaker IntelBroker posted on the even more infamous BreachForums hacking forum, saying that Europol suffered a data breach this month.
The alleged breach affected Europol agencies CCSE, EC3, Europol Platform for Experts, Law Enforcement Forum, and SIRIUS. Infiltration of these entities can disrupt ongoing investigations and compromise sensitive intelligence shared among international law enforcement agencies.
However, this is neither the first nor the last activity of IntekBroker. We have compiled for you what happened in the last few days. To track such hacker activities on dark web sources like hacker forums, private Telegram channels, and other hidden platforms where cyber threats often originate, you can check SOCRadar’s Dark Web News.
Stay Informed on Threat Actors’ Activity on the Dark Web with SOCRadar!
A Comprehensive Look at Generative AI in Retail App Testing.pdfkalichargn70th171
Traditional software testing methods are being challenged in retail, where customer expectations and technological advancements continually shape the landscape. Enter generative AI—a transformative subset of artificial intelligence technologies poised to revolutionize software testing.
Enhancing Research Orchestration Capabilities at ORNL.pdfGlobus
Cross-facility research orchestration comes with ever-changing constraints regarding the availability and suitability of various compute and data resources. In short, a flexible data and processing fabric is needed to enable the dynamic redirection of data and compute tasks throughout the lifecycle of an experiment. In this talk, we illustrate how we easily leveraged Globus services to instrument the ACE research testbed at the Oak Ridge Leadership Computing Facility with flexible data and task orchestration capabilities.
We describe the deployment and use of Globus Compute for remote computation. This content is aimed at researchers who wish to compute on remote resources using a unified programming interface, as well as system administrators who will deploy and operate Globus Compute services on their research computing infrastructure.
TROUBLESHOOTING 9 TYPES OF OUTOFMEMORYERRORTier1 app
Even though at surface level ‘java.lang.OutOfMemoryError’ appears as one single error; underlyingly there are 9 types of OutOfMemoryError. Each type of OutOfMemoryError has different causes, diagnosis approaches and solutions. This session equips you with the knowledge, tools, and techniques needed to troubleshoot and conquer OutOfMemoryError in all its forms, ensuring smoother, more efficient Java applications.
Prosigns: Transforming Business with Tailored Technology SolutionsProsigns
Unlocking Business Potential: Tailored Technology Solutions by Prosigns
Discover how Prosigns, a leading technology solutions provider, partners with businesses to drive innovation and success. Our presentation showcases our comprehensive range of services, including custom software development, web and mobile app development, AI & ML solutions, blockchain integration, DevOps services, and Microsoft Dynamics 365 support.
Custom Software Development: Prosigns specializes in creating bespoke software solutions that cater to your unique business needs. Our team of experts works closely with you to understand your requirements and deliver tailor-made software that enhances efficiency and drives growth.
Web and Mobile App Development: From responsive websites to intuitive mobile applications, Prosigns develops cutting-edge solutions that engage users and deliver seamless experiences across devices.
AI & ML Solutions: Harnessing the power of Artificial Intelligence and Machine Learning, Prosigns provides smart solutions that automate processes, provide valuable insights, and drive informed decision-making.
Blockchain Integration: Prosigns offers comprehensive blockchain solutions, including development, integration, and consulting services, enabling businesses to leverage blockchain technology for enhanced security, transparency, and efficiency.
DevOps Services: Prosigns' DevOps services streamline development and operations processes, ensuring faster and more reliable software delivery through automation and continuous integration.
Microsoft Dynamics 365 Support: Prosigns provides comprehensive support and maintenance services for Microsoft Dynamics 365, ensuring your system is always up-to-date, secure, and running smoothly.
Learn how our collaborative approach and dedication to excellence help businesses achieve their goals and stay ahead in today's digital landscape. From concept to deployment, Prosigns is your trusted partner for transforming ideas into reality and unlocking the full potential of your business.
Join us on a journey of innovation and growth. Let's partner for success with Prosigns.
Listen to the keynote address and hear about the latest developments from Rachana Ananthakrishnan and Ian Foster who review the updates to the Globus Platform and Service, and the relevance of Globus to the scientific community as an automation platform to accelerate scientific discovery.
Software Engineering, Software Consulting, Tech Lead.
Spring Boot, Spring Cloud, Spring Core, Spring JDBC, Spring Security,
Spring Transaction, Spring MVC,
Log4j, REST/SOAP WEB-SERVICES.
Unleash Unlimited Potential with One-Time Purchase
BoxLang is more than just a language; it's a community. By choosing a Visionary License, you're not just investing in your success, you're actively contributing to the ongoing development and support of BoxLang.
Globus Connect Server Deep Dive - GlobusWorld 2024Globus
We explore the Globus Connect Server (GCS) architecture and experiment with advanced configuration options and use cases. This content is targeted at system administrators who are familiar with GCS and currently operate—or are planning to operate—broader deployments at their institution.
Designing for Privacy in Amazon Web ServicesKrzysztofKkol1
Data privacy is one of the most critical issues that businesses face. This presentation shares insights on the principles and best practices for ensuring the resilience and security of your workload.
Drawing on a real-life project from the HR industry, the various challenges will be demonstrated: data protection, self-healing, business continuity, security, and transparency of data processing. This systematized approach allowed to create a secure AWS cloud infrastructure that not only met strict compliance rules but also exceeded the client's expectations.
Strategies for Successful Data Migration Tools.pptxvarshanayak241
Data migration is a complex but essential task for organizations aiming to modernize their IT infrastructure and leverage new technologies. By understanding common challenges and implementing these strategies, businesses can achieve a successful migration with minimal disruption. Data Migration Tool like Ask On Data play a pivotal role in this journey, offering features that streamline the process, ensure data integrity, and maintain security. With the right approach and tools, organizations can turn the challenge of data migration into an opportunity for growth and innovation.
Experience our free, in-depth three-part Tendenci Platform Corporate Membership Management workshop series! In Session 1 on May 14th, 2024, we began with an Introduction and Setup, mastering the configuration of your Corporate Membership Module settings to establish membership types, applications, and more. Then, on May 16th, 2024, in Session 2, we focused on binding individual members to a Corporate Membership and Corporate Reps, teaching you how to add individual members and assign Corporate Representatives to manage dues, renewals, and associated members. Finally, on May 28th, 2024, in Session 3, we covered questions and concerns, addressing any queries or issues you may have.
For more Tendenci AMS events, check out www.tendenci.com/events
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisGlobus
JASMIN is the UK’s high-performance data analysis platform for environmental science, operated by STFC on behalf of the UK Natural Environment Research Council (NERC). In addition to its role in hosting the CEDA Archive (NERC’s long-term repository for climate, atmospheric science & Earth observation data in the UK), JASMIN provides a collaborative platform to a community of around 2,000 scientists in the UK and beyond, providing nearly 400 environmental science projects with working space, compute resources and tools to facilitate their work. High-performance data transfer into and out of JASMIN has always been a key feature, with many scientists bringing model outputs from supercomputers elsewhere in the UK, to analyse against observational or other model data in the CEDA Archive. A growing number of JASMIN users are now realising the benefits of using the Globus service to provide reliable and efficient data movement and other tasks in this and other contexts. Further use cases involve long-distance (intercontinental) transfers to and from JASMIN, and collecting results from a mobile atmospheric radar system, pushing data to JASMIN via a lightweight Globus deployment. We provide details of how Globus fits into our current infrastructure, our experience of the recent migration to GCSv5.4, and of our interest in developing use of the wider ecosystem of Globus services for the benefit of our user community.
How Does XfilesPro Ensure Security While Sharing Documents in Salesforce?XfilesPro
Worried about document security while sharing them in Salesforce? Fret no more! Here are the top-notch security standards XfilesPro upholds to ensure strong security for your Salesforce documents while sharing with internal or external people.
To learn more, read the blog: https://www.xfilespro.com/how-does-xfilespro-make-document-sharing-secure-and-seamless-in-salesforce/
7. Lambdas is just a fancy
name for stateless
functions without side-
effects!
8. Evolution: Servers to serverless
Code
Runtime
OS
Hardware
Code
Runtime
OS
Hardware
Code
Runtime
OS
Hardware
Code
Runtime
OS
Hardware
Physical
Servers
Virtual
Machines
Containers Serverless
9. Evolution: Servers to serverless
Slow-iteration and
deployment
Faster-iteration and
deployment
Fastest-iteration
and deployment
Rapid iteration and
deployment
Single tenency Multi-tenency
Super multi-
tenancy
Extreme multi-
tenancy
Unfriendly for
polyglots
Somewhat friendly
for polyglots
Friendly for
polyglots
Very friendly for
polyglots
Deploy in weeks Deploy in minutes Deploy in seconds
Deploy
independently
Typically alive for
years
Typically alive for
weeks
Typically alive for
hours
Typically alive for
seconds
Physical
Servers
Virtual
Machines
Containers Serverless
Source: https://www.slideshare.net/AmazonWebServices/getting-started-with-serverless-architectures-63429092
11. What is serverless?
“Serverless architectures refer to applications that
significantly depend on third-party services (knows
as Backend as a Service or "BaaS") or on custom code
that's run in ephemeral containers (Function as a
Service or “FaaS”)”
- Martin Fowler
12.
13. – Serverless for Dummies
“Serverless: just put your code in cloud and run it”
14. What is serverless?
❖ Serverless is often referred to as FaaS - Function as a
Service. Gartner refers to it as fPaaS - function Platform
as a Service.
❖ The model in serverless architecture is this: a distributed
system that reacts to events or process workloads
dynamically based on demand by spinning up
ephemeral (short-lived) containers or computational
resources in the cloud.
17. On the term “lambda”
❖ The term “lambda” originates from the
“lambda calculus”. In 1936, Alonzo Church
developed a logic system that was later
adopted for computation.
❖ Most languages (including Java, C# and C++)
support lambda functions today.
❖ In languages supporting lambda functions,
it is an unnamed function that takes input
coming variables and returns a value.
❖ A salient characteristic of lambda functions
is the lack of side-effects.
20. – Doug McIlroy
“Write programs that do one thing and do it well.
Write programs to work together. Write programs
to handle text streams, because that is a universal
interface.”
21.
22.
23. But, but, “Serverless != No servers”
Lambdas are executed in servers in cloud
- so we still have servers!
What serverless means is you don't have to
care about servers: no provisioning,
maintenance, etc.
24. Why serverless?
– Google Cloud Functions
https://cloud.google.com/functions/
“Serve users from zero to
planet-scale, all without
managing any
infrastructure.”
25. – Gartner
"By 2022, most platform as a service (PaaS)
offerings will evolve to a fundamentally serverless
model, rendering the cloud platform architectures
dominating in 2017 as legacy architectures"
39. Live video-steam processing
source: https://www.slideshare.net/AmazonWebServices/aws-reinvent-2016-getting-started-with-serverless-architectures-cmp211
40. Use case #1: web applications
source: https://www.slideshare.net/AmazonWebServices/aws-reinvent-2016-serverless-architectural-patterns-and-best-practices-arc402
41. Use case #2: batch processing
source: https://www.slideshare.net/AmazonWebServices/aws-reinvent-2016-serverless-architectural-patterns-and-best-practices-arc402
42. Use case #3: stream processing
source: https://www.slideshare.net/AmazonWebServices/aws-reinvent-2016-serverless-architectural-patterns-and-best-practices-arc402
44. Towards LessOps model?
Serverless frameworks move us towards LessOps model - meaning no or
few operators are required for monitoring and maintaining the servers and
infrastructure.
45. – Dr Werner Vogels (Amazon CTO)
"What we’ve seen is a
revolution where complete
applications are being stripped
of all their servers, and only
code is being run. Quite a few
companies are ripping out big
pieces of their applications and
replacing their servers, their
VMs and their containers with
just code… Perhaps we no longer
have to think about servers!”
47. Five principles for serverless applications
Use a compute service to execute code on demand (no
servers)
Write single-purpose stateless functions
Design push-based, event-driven pipelines
Create thicker, more powerful front ends
Embrace third-party services
Source: Peter Sbarski, “Serverless Architectures on AWS”, Manning, 2017
50. AWS Lambda
❖ Lambda is one of the earliest technologies for serverless
(13 Nov 2014). It is also the most mature and stable
platform.
❖ http://aws.amazon.com/lambda
❖ Currently supported (as on June 2017) - .NET Core 1.01.
(C#), Java 8, Node.js 4.3, Node.js 6.10.2, Python 2.7 and
3.6.
51. Three ways to create a function
❖ There are three ways to create the same lambda
function:
❖ AWS Lambda console (web UI)
❖ AWS CLI (from your commandline)
❖ AWS SDK
52. Execution Environment
❖ Public Amazon Linux AMI version (AMI name: amzn-ami-
hvm-2016.03.3.x86_64-gp2)
❖ Linux kernel version – 4.4.51-40.60.amzn1.x86_64
❖ When creating native (64-bit) binaries for executing in Lambda, this
information is important - so that code can be compiled to this target
❖ The following libraries are available in execution environment
❖ AWS SDK – AWS SDK for JavaScript version 2.45.0
❖ AWS SDK for Python (Boto 3) version 1.4.4, Botocore version 1.5.43
❖ Amazon Linux build of java-1.8.0-openjdk for Java
Source: http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
53. A simple lambda
$ cat hello.py
def lambda_handler(event, context):
print "hello srushit"
return 'Hello from srushit'
$ zip -r hello-world hello.py
$ aws lambda create-function --region us-east-1 --function-name
FirstPythonLambda --zip-file fileb:///Users/gsamarthyam/hello-world.zip --
role arn:aws:iam::431635030606:role/LambdaExecuteRole --runtime
python2.7 --handler hello::lambda_handler
Notes:
(a) Once you upload the function from command-line, it takes time to see the
updated source code from the AWS console online.
(b) In Python, print statements and Logger functions in the logging module are
logged - you can check them in CloudWatch logs.
54. A hello world lambda in Java
$ cat Hello.java
import com.amazonaws.services.lambda.runtime.Context;
public class Hello {
public String handleRequest(String name, Context context) {
return "Hello " + name;
}
}
http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model.html
56. Step #1
$ javac -cp ./lib/aws-lambda-java-core-1.0.0.jar:./lib/aws-lambda-java-events-1.0.0.jar
Hello.java
$
Need to provide the dependencies (Context
class in this case) to compile it; dependency
details available from: https://github.com/
aws/aws-lambda-java-libs
(“Official mirror for interface definitions and
helper classes for Java code running on the AWS
Lambda platform.”)
57. Step #2
$ zip -r Hello.zip Hello.class lib/aws-lambda-java-core-1.0.0.jar lib/aws-lambda-java-
events-1.0.0.jar
adding: Hello.class (deflated 35%)
adding: lib/aws-lambda-java-core-1.0.0.jar (deflated 39%)
adding: lib/aws-lambda-java-events-1.0.0.jar (deflated 27%)
$ ls -lh Hello.zip
-rw-r--r-- 1 gsamarthyam staff 14K Jun 19 15:01 Hello.zip
$ ls -lh lib
-rw-r--r-- 1 gsamarthyam staff 29K Jun 23 16:12 aws-lambda-java-core-1.0.0.jar
-rw-r--r--@ 1 gsamarthyam staff 11K Jun 18 16:44 aws-lambda-java-events-1.0.0.jar
Create a zip file with the dependencies - in this
case, it is just a couple of standard dependencies
63. How to delete the function?
$ aws lambda delete-function --function-name FirstJavaLambda
$ aws lambda list-functions | grep FirstJavaLambda
$
You can check that once the lambda is deleted,
the list-functions doesn’t list it anymore
65. Using AWS SDK to create lambdas
$ cat testing.py
def lambda_handler(event, context):
return 'Hello from Lambda'
$ cat invokelambda.py
import boto3
import json
client = boto3.client('lambda')
response = client.invoke(
FunctionName='arn:aws:lambda:us-east-1:431635030606:function:testing',
InvocationType='RequestResponse',
LogType='Tail',
Payload=json.dumps({})
)
result = response['Payload'].read()
print(result)
$ python invokelambda.py
"Hello from Lambda"
$
66. Kinds of lambda invocations
• Event based lambdas
are invoked based on
triggers; example: when
a file is dropped in a S3
bucket, a lambda may
be invoked
• Async in nature
• No response sent back
to the invoker
Event RequestResponse
• Synchronous - when
invoked, it executes and
waits till completion
and returns something
to the invoker
• Happens when invoked
through API gateway,
CLI or AWS console
67. Specifying invocation types in CLI
Help description for —invocation-type option
for “aws lambda invoke” from AWS CLI
68. Using base64
❖ Sometimes it is convenient to use base64 whenever you
want to send data to the lambda or return from the
lambda, or get that data again as context. this avoids
adding unicode characters etc.
❖ Logs in lambdas often use base64. You can use the
“base64 --decode” command (mac/linux) to read the
log file
69. Using base64 - example
$ cat logresult.txt
{
"LogResult":
"U1RBUlQgUmVxdWVzdElkOiAyZGRmMjQ3Ni01ODE3LTExZTctYWI4YS02ZGQwZWMxYTFlYmMgVmVyc2lvbjogJExBVEVTVApsb2c
gZGF0YSBmcm9tIHN0ZG91dCAKIHRoaXMgaXMgY29udGludWF0aW9uIG9mIHN5c3RlbS5vdXQKbG9nIGRhdGEgZnJvbSBzdGRlcnI
gCiB0aGlzIGlzIGNvbnRpbnVhdGlvbiBvZiBzeXN0ZW0uZXJyCmxvZyBkYXRhIGZyb20gTGFtYmRhTG9nZ2VyIAogdGhpcyBpcyB
jb250aW51YXRpb24gb2YgbG9nZ2VyLmxvZ0VORCBSZXF1ZXN0SWQ6IDJkZGYyNDc2LTU4MTctMTFlNy1hYjhhLTZkZDBlYzFhMWV
iYwpSRVBPUlQgUmVxdWVzdElkOiAyZGRmMjQ3Ni01ODE3LTExZTctYWI4YS02ZGQwZWMxYTFlYmMJRHVyYXRpb246IDUuMDIgbXM
JQmlsbGVkIER1cmF0aW9uOiAxMDAgbXMgCU1lbW9yeSBTaXplOiAxMjggTUIJTWF4IE1lbW9yeSBVc2VkOiA0NiBNQgkK",
"StatusCode": 200
}
$ echo
"U1RBUlQgUmVxdWVzdElkOiAyZGRmMjQ3Ni01ODE3LTExZTctYWI4YS02ZGQwZWMxYTFlYmMgVmVyc2lvbjogJExBVEVTVApsb2c
gZGF0YSBmcm9tIHN0ZG91dCAKIHRoaXMgaXMgY29udGludWF0aW9uIG9mIHN5c3RlbS5vdXQKbG9nIGRhdGEgZnJvbSBzdGRlcnI
gCiB0aGlzIGlzIGNvbnRpbnVhdGlvbiBvZiBzeXN0ZW0uZXJyCmxvZyBkYXRhIGZyb20gTGFtYmRhTG9nZ2VyIAogdGhpcyBpcyB
jb250aW51YXRpb24gb2YgbG9nZ2VyLmxvZ0VORCBSZXF1ZXN0SWQ6IDJkZGYyNDc2LTU4MTctMTFlNy1hYjhhLTZkZDBlYzFhMWV
iYwpSRVBPUlQgUmVxdWVzdElkOiAyZGRmMjQ3Ni01ODE3LTExZTctYWI4YS02ZGQwZWMxYTFlYmMJRHVyYXRpb246IDUuMDIgbXM
JQmlsbGVkIER1cmF0aW9uOiAxMDAgbXMgCU1lbW9yeSBTaXplOiAxMjggTUIJTWF4IE1lbW9yeSBVc2VkOiA0NiBNQgkK" |
base64 --decode
START RequestId: 2ddf2476-5817-11e7-ab8a-6dd0ec1a1ebc Version: $LATEST
log data from stdout
this is continuation of system.out
log data from stderr
this is continuation of system.err
log data from LambdaLogger
this is continuation of logger.logEND RequestId: 2ddf2476-5817-11e7-ab8a-6dd0ec1a1ebc
REPORT RequestId: 2ddf2476-5817-11e7-ab8a-6dd0ec1a1ebcDuration: 5.02 msBilled Duration: 100 ms
Memory Size: 128 MB Max Memory Used: 46 MB
$
70. Understanding the “Context” object
$ cat ContextInfo.java
import com.amazonaws.services.lambda.runtime.Context;
public class ContextInfo {
public Context details(Object input, Context context) {
System.out.println("Memory limit in MBs: " + context.getMemoryLimitInMB());
System.out.println("Function name: " + context.getFunctionName());
System.out.println("AWS Request ID: " + context.getAwsRequestId());
System.out.println("Log Stream Name: " + context.getLogStreamName());
System.out.println("Log Group Name: " + context.getLogGroupName());
System.out.println("Client Context: " + context.getClientContext());
System.out.println("Identity: " + context.getIdentity());
System.out.println("Remaining time (in milli seconds): "+
context.getRemainingTimeInMillis());
return context;
}
}
72. Understanding the “Context” object
Memory limit in MBs: 128
Function name: ContextInfoLambda
AWS Request ID: 32320904-5805-11e7-8904-ebe1abfa66b8
Log Stream Name: 2017/06/23/[$LATEST]acf60f48492b4df59ef8ebe534fffe00
Log Group Name: /aws/lambda/ContextInfoLambda
Client Context: null
Identity: lambdainternal.api.LambdaCognitoIdentity@589838eb
Remaining time (in milli seconds): 2778
73. Understanding the “Context” object
getFunctionName()
Name of the lambda function being executed (e.g.,
FirstJavaLambda)
getFunctionVersion() Version of the function (or its alias if it points to an alias)
getInvokedFunctionArn()
Get the ARN (Amazon Resource Name), for example,
arn:aws:lambda:us-west-2:431635030606:function:HelloWorld
getLogStreamName() Returns the CloudWatch log stream name
getLogger() Returns the logger associated with the given context object
getMemoryLimitInMB()
Amount of memory set as limit when creating the lambda
function (value returned in MBs)
getRemainingTimeInMillis()
Returns the amount of time remaining for execution (based on the
time limit set during creating the function)
74. Watching CloudWatch logs
To watch with CloudWatch, create a new role with following accesses:
arn:aws:iam::aws:policy/AWSLambdaExecute
arn:aws:iam::aws:policy/AWSLambdaFullAccess
Streams stdout and stderr are redirected to
CloudWatch logs; can be viewed from AWS console
75. Using the /tmp directory
❖ Applications can use “/tmp” directory
❖ If the underlying container gets recycled, the files in the
“/tmp” directory will be gone!
❖ Also, /tmp is limited to 500 MB size - that is a limiting
factor for many kinds of applications.
❖ For example, if we want to convert a video from one
format to another, then this limit matters.
76. Dealing with code dependencies
❖ External libraries and dependencies must be bundled with the
lambda function as zip files (or jar files depending on the context)
❖ There is limitation to the size of the dependencies that we can
upload, currently it is 30MB.
❖ That is quite small for real-world requirement where the
dependent libraries can be large.
❖ A workaround for this limitation is to upload it into S3 bucket,
put it in to /tmp directory for the lambda and then use it.
77. Using lambdas with AWS services
❖ For real-world uses, its practically not feasible to use lambda without
the AWS eco-system:
❖ S3 can be used for processing images, converting document formats,
etc from the lambdas. Large dependencies for the lambda can be
stored in S3 and processed from the lambdas
❖ SNS (Simple Notification Service) can be used for event processing
❖ DynamoDB can be used for persistence and data processing
❖ Alexa can be used for automated voice responses with Amazon Echo
for example
❖ Lex can be used for chatbots with lambda as the back-end code
78. How does a lambda terminate?
❖ How does a lambda terminate?
(A) Timeout - once the given maximum duration is
reached, the function will terminate
(B) Normal termination - returning from the lambda -
when the function returns, the lambda terminates
(C)Abnormal termination - forcefully terminating the
lambda with calling functions (e.g. process.exit() in
nodejs)
82. Costing aspects
❖ There are two factors for pricing calculation
1. Request costs: refers to number of executions - it is
calculated at 100ms slices
2. Execution costs: these are variable costs; change the memory
size and the execution cost will be calculated accordingly
❖ There is no cost for idle time
❖ You can use the online pricing calculator to estimate how much it
may cost you: https://s3.amazonaws.com/lambda-tools/
pricing-calculator.html
85. Costing aspects
❖ In AWS lambda, the increase in the memory is associated
with increased CPU and network I/O speeds.
❖ In free tier, it makes sense to increase it to the max MBs.
❖ Note that the cost is not based on actual consumption,
but on the max. cap.
❖ Lots of calls execute only for short duration, like 30 ms.
However billing is done for 100ms minimum. Hence, one
way is to design applications that make fewer but longer
calls.
86. Serverless != Always Lower Costs!
❖ It is a myth that adopting serverless will always reduce
your costs. It is NOT true. The key in cost savings is in
how you utilise serverless. For example, serverless is
suitable if you have spiky workloads (or idle scenarios).
It is NOT suitable in scenarios where your demand is
stable.
88. Internally, it uses containers!
❖ Internally, AWS Lambda uses Linux Containers
❖ When a lambda function is invoked, it launches a
container (with the provided config settings)
❖ When a function is called for the first time (or after it is
updated), spawning the container adds some latency
❖ Container is terminated and is “frozen” for reuse
❖ If called again “soon”, it is “thawed” and invoked
again
Based on: http://docs.aws.amazon.com/lambda/latest/dg/lambda-introduction.html
91. How AWS Lambda works
❖ Handlers are executed on workers. Time for starting-up of
a worker is around 1 to 2 seconds.
❖ In case of a “load burst”, the Lambda load balancer sends
them to new workers - that will incur latencies.
❖ For a container to execute the handler immediately, it must
be in running state.
❖ However, if handlers are called only once in a while,
then the container goes to paused or stopped state and it
takes time to get back to running state again.
92. Cold vs. warm invocation
❖ Cold invocation - requires warm-up time (e.g., when
starting for the first time) - the latency may be
perceivable to the users
❖ Actions like code redeployment or making
configuration changes can force redeployment of the
lambda that make it cold invocation
❖ Warm invocation - lambda already deployed and ready
to serve as soon as it is triggered or called
93. How to keep your container “warm”?
❖ You can use a “warming trigger” to
ensure that the lambda function
doesn’t go cold. Trigger it within
every few minutes.
❖ Schedule CloudWatch events to
fire every few minutes to keep the
container “warm”
❖ In serverless framework, there is a
plugin that keeps the lambda
warm by sending an event every
5 minutes or so: https://
github.com/FidelLimited/
serverless-plugin-warmup
94. Best Practice
Don’t depend on container reuse, but make best use of it
Example #1: copy files from s3 and use it from /tmp, but check if the files
in /tmp exist before trying to access them!
Example #2: Instantiate AWS client, establish database connects, etc outside
the handler - they will not be initialised again if container is reused
95. How about other languages?
❖ Lambda currently supports limited set of languages
(JavaScript - with Node.js, Python, Java and C#)
❖ What if you want to use some other language, say Go?
❖ You can still run Go by following a few steps:
❖ http://blog.0x82.com/2014/11/24/aws-lambda-
functions-in-go/
❖ https://serifandsemaphore.io/go-amazon-
lambda-7e95a147cec8
96. Security
❖ IAM (Identity & Access Management) provides the security for your
lambdas
❖ Specific accesses are often required; for example, to watch lambda
logs with CloudWatch, create a new role with following accesses:
❖ arn:aws:iam::aws:policy/AWSLambdaExecute
❖ arn:aws:iam::aws:policy/AWSLambdaFullAccess
❖ Due to security and legal aspects, serverless functions may need to
run privately. In this case, lambda functions can be executed on AWS
VPC (Virtual Private Cloud) inside a private network.
97. Using “aws iam” - example
$ aws iam list-roles | jq -r .Roles[].Arn
arn:aws:iam::431635030606:role/helloworld-dev
arn:aws:iam::431635030606:role/service-role/javatesting
arn:aws:iam::431635030606:role/LambdaExecuteRole
$ aws iam list-roles | jq -r .Roles[].Arn | grep ExecuteRole
arn:aws:iam::431635030606:role/LambdaExecuteRole
98. Serverless != Always Lower Costs!
❖ It is a myth that adopting serverless will always reduce
your costs. It is NOT true. The key in cost savings is in
how you utilise serverless. For example, serverless is
suitable if you have spiky workloads (or idle scenarios).
It is NOT suitable in scenarios where your demand is
stable.
101. What’s not suitable
❖ Extremely long running jobs
❖ Jobs that require extensive communication between
each other
❖ Constant loads and well-known costs
❖ Responses with very low-latency
102. Rearchitecting to serverless functions
❖ Moving to serverless is not as
easy as flipping a switch: for
existing applications, it may
even require re-architecting/re-
writing.
❖ This is because serverless
computation architecture
model is quite different from
the way traditionally
software is written and
deployed.
103. Costing in Google Cloud Functions
* Includes both Background and HTTP Functions.
Source: https://cloud.google.com/functions/
104. So, what’s the catch?
❖ Runtime and resource limitations
(memory, dependency sizes)
❖ Vendor lock-in (because non-
trivial lambdas will use services
from providers)
❖ Lambdas are still low-level
“primitives”
❖ Tooling yet to mature (for testing,
deploying, monitoring, …)
❖ …
108. Tools to simplify using AWS Lambda
❖ Most frameworks available today in serverless domain try to simplify
AWS! Here is a partial list (all of the for AWS):
❖ Chalice (Python)
❖ ClaudiaJS (NodeJS)
❖ Dawson (Node)
❖ Lambada Framework (Java)
❖ Shep (Node)
❖ Sparta (Go)
❖ Zappa (Python)
109. Node Lambda (for Node.js)
❖ This is a “command line tool to locally run and deploy
your node.js application to Amazon Lambda”
❖ Why? Instead of testing your Lambda in AWS, you can
write it locally and run it and test it; when everything is
good, then deploy it in AWS Lambda
❖ URL: https://github.com/motdotla/node-lambda
110. ❖ “The Standard Library for Functions as a Service.
Discover pre-built APIs, compose your own, build apps,
and move your business faster than ever with new
"server-less" technology.”
❖ Aims to be the “standard library for the web”!
❖ Check out https://stdlib.com/ and https://
github.com/stdlib/lib
112. Book Recommendations
❖ Has many interesting examples
❖ The supporting website has
demos that you can try out:
https://eventdrivenapps.com/
❖ URL: https://
www.manning.com/books/
aws-lambda-in-action
113. Book Recommendations
❖ Focus on & examples using AWS
Lambda
❖ Covers serverless patterns and
architectures
❖ Written by Dr. Peter Sbarski, head
of Serverlessconf
❖ Serverless Architectures on AWS,
Peter Sbarski, Manning
Publications, 376 pages, April 2017.
URL: https://www.amazon.com/
Serverless-Architectures-AWS-
examples-Lambda/dp/1617293822
114. Book Recommendations
❖ Serverless: Patterns of Modern
Application Design Using
Microservices (Amazon Web
Services Edition), Obie
Fernandez, LeanPub, 2016.
https://leanpub.com/
serverless
115. Book Recommendations
❖ Comprehensive - free - guide
on AWS Lambda is available
here: http://
docs.aws.amazon.com/
lambda/latest/dg/lambda-
dg.pdf
116. Links
❖ M. Fowler’s early article on serverless http://
martinfowler.com/articles/serverless.html
❖ AWS Lambda local runner: https://github.com/
cagataygurturk/aws-lambda-local-runner
❖ Java on AWS Lambda: https://www.infoq.com/news/
2017/06/fearless-aws-lambda
❖ The twelve-factor app: https://12factor.net/
117. Video Resources
❖ Serverless Architectures: What, why, why not, and
where next? - Mike Roberts
❖ Serverless: the Future of Software Architecture - Peter
Sbarski
❖ Serverless computing options with Google Cloud
Platform - Bret McGowen