Why the JVM is a Good Choice for Serverless Computing: John Chapin Discusses AWS Lambda at QCon NY   

At QCon New York John Chapin presented “Fearless AWS Lambdas”, and not only argued that the JVM is a good platform on which to deploy serverless code, but also provided guidance on extracting the best performance from Java-based AWS Lambda functions.

By Daniel Bryant
          姗姗来迟的Serverless如何助力微服务和DevOps   

2014年Serverless架构进入大众视线,业界普遍认为,Serverless化可大幅降低IT成本,将云的费用减少10%-90%,同时还能提高服务部署效率。

By 黄文俊
          Mastering PHP 7   

Effective, readable, and robust codes in PHP About This Book Leverage the newest tools available in PHP 7 to build scalable applications Embrace serverless architecture and the reactive programming paradigm, which are the latest additions to the PHP ecosystem Explore dependency injection and implement design patterns to write elegant code Who This Book Is For This book is for intermediate level developers who want to become a master of PHP. Basic knowledge of PHP is required across areas such as basic syntax, types, variables, constants, expressions, operators, control structures, and functions. What You Will Learn Grasp the current state of PHP language and the PHP standards Effectively implement logging and error handling during development Build services through SOAP and REST and Apache Trift Get to know the benefits of serverless architecture Understand the basic principles of reactive programming to write asynchronous code Practically implement several important design patterns Write efficient code by executing dependency injection See the working of all magic methods Handle the command-line area tools and processes Control the development process with proper debugging and profiling In Detail PHP is a server-side scripting language that is widely used for web development. With this book, you will get a deep understanding of the advanced programming concepts in PHP and how to apply it practically The book starts by unveiling the new features of PHP 7 and walks you through several important standards set by PHP Framework Interop Group (PHP-FIG). You’ll see, in detail, the working of all magic methods, and the importance of effective PHP OOP concepts, which will enable you to write effective PHP code. You will find out how to implement design patterns and resolve dependencies to make your code base more elegant and readable. You will also build web services alongside microservices architecture, interact with databases, and work around third-party packages to enrich applications. This book delves into the details of PHP performance optimization. You will learn about serverless architecture and the reactive programming paradigm that found its way in the PHP ecosystem. The book also explores the best ways of testing your code, debugging, tracing, profiling, and deploying your PHP application. By the end of the book, you will be able to create readable, reliable, and robust applications in PHP to meet modern day requirements in the software industry. Style and approach This is a comprehensive, step-by-step practical guide to developing scalable applications using PHP 7.1 Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          האם מחשוב הענן הגיע לסוף ימיו? על Serverless ו-FaaS   
המגמה והגידול של Serverless ושל FaaS בפרט גדלים בצורה אקפוננציאלית, למה ומה המשמעות של זה בעצם?
          Mastering PHP 7   

Effective, readable, and robust codes in PHP About This Book Leverage the newest tools available in PHP 7 to build scalable applications Embrace serverless architecture and the reactive programming paradigm, which are the latest additions to the PHP ecosystem Explore dependency injection and implement design patterns to write elegant code Who This Book Is For This book is for intermediate level developers who want to become a master of PHP. Basic knowledge of PHP is required across areas such as basic syntax, types, variables, constants, expressions, operators, control structures, and functions. What You Will Learn Grasp the current state of PHP language and the PHP standards Effectively implement logging and error handling during development Build services through SOAP and REST and Apache Trift Get to know the benefits of serverless architecture Understand the basic principles of reactive programming to write asynchronous code Practically implement several important design patterns Write efficient code by executing dependency injection See the working of all magic methods Handle the command-line area tools and processes Control the development process with proper debugging and profiling In Detail PHP is a server-side scripting language that is widely used for web development. With this book, you will get a deep understanding of the advanced programming concepts in PHP and how to apply it practically The book starts by unveiling the new features of PHP 7 and walks you through several important standards set by PHP Framework Interop Group (PHP-FIG). You’ll see, in detail, the working of all magic methods, and the importance of effective PHP OOP concepts, which will enable you to write effective PHP code. You will find out how to implement design patterns and resolve dependencies to make your code base more elegant and readable. You will also build web services alongside microservices architecture, interact with databases, and work around third-party packages to enrich applications. This book delves into the details of PHP performance optimization. You will learn about serverless architecture and the reactive programming paradigm that found its way in the PHP ecosystem. The book also explores the best ways of testing your code, debugging, tracing, profiling, and deploying your PHP application. By the end of the book, you will be able to create readable, reliable, and robust applications in PHP to meet modern day requirements in the software industry. Style and approach This is a comprehensive, step-by-step practical guide to developing scalable applications using PHP 7.1 Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Episode 97: The novel strategy of making money, and investing to do so - Amazon + Whole Foods   
Looks like we’ll be getting cheaper organic food what with Amazon buying Whole Foods. What exactly is the strategy at play here, though? Other than the obvious thing of doing online groceries, how is Amazon advantaged here such that others (like Wal-mart), can’t simply do this themselves. We go over these questions and how they related to M&A in general. Plus recommendations and some podcast meta talk. Mid-roll This episode is sponsored by Casper, who’s looking for some good senior SREs (https://boards.greenhouse.io/casper/jobs/649758?gh_jid=649758). If you’re into building out and managing infrastructure that keeps code running and makes sure you can sleep soundly at night, check out the job listing, apply (https://boards.greenhouse.io/casper/jobs/649758?gh_jid=649758), and be sure to mention that you heard about it on Software Defined Talk. According to Glassdoor reviews (https://www.glassdoor.com/Overview/Working-at-Casper-EI_IE990859.11,17.htm), it’s a damn fine place to work. You can also just email jobs@casper.com and browse all their openings at casper.com/jobs (https://casper.com/jobs/). LOOK, MA! I PUT IN DATES! DevOpsDays Minneapolis, July 25 to 26th: get 20% off registration with the code SDT (https://devopsdays-minneapolis-2017.eventbrite.com?discount=SDT) (Thanks, Bridget!). SpringDays (https://www.springdays.io/ehome/index.php?eventid=228094&) - Atlanta (July 18th to 19th) (https://www.springdays.io/ehome/spring-days/atlanta) Matt will be at: DevSecOps at RSA Conf APJ (http://www.alldaydevops.com/blog/all-you-need-to-know-about-devops-connect-devsecops-at-rsac-singapore) Sydney Chef Meetup August 1st (https://www.meetup.com/Chef-Sydney/events/240660647/) Auckland AWS User Community August 3rd (https://www.meetup.com/AWS_NZ/events/237833579/) Brisbane Azure User Group October 11 (https://www.meetup.com/Brisbane-Azure-User-Group/events/240477415/) Podcast meta-talk Podcasts.app to be able to track what you listen to (https://cote.io/2017/06/28/apple-makes-major-podcast-updates/). Just paying for podcasts. $220m+ estimated TAM (https://cote.io/2017/06/28/podcast-market-estimated-at-over-220m/). We have a Casper ad! Amazon Buys Whole Foods This was not covered in the Mary Meeker slide-fest. Coté’s notebook on the topic (https://cote.io/2017/06/28/amazon-buying-whole-foods-notebook/). Stratechery on WF Acquisition (https://stratechery.com/2017/amazons-new-customer/) Exponent Podcast (http://exponent.fm/) What exactly are the barriers to entry here for other grocery stores. The business: online, and just the grocery store on it’s own...plus the 460+ physical stores for other goods? Barriers to entry, Amazon buyers (Whole Foods looks good now?), culture clash?, HEB love, private label BONUS LINKS! Not covered in episode. Gartner Magic Quadrant for IAAS is Here! Larry D. (http://www.zdnet.com/article/gartner-puts-aws-microsoft-azure-top-of-its-magic-quadrant-for-iaas/) Once again, what a change from way back when: CRN (http://www.crn.com/slide-shows/cloud/300087321/heres-who-made-gartners-2017-magic-quadrant-for-cloud-iaas.htm) The Register (http://www.theregister.co.uk/2017/06/19/gartner_confirms_what_we_all_know_aws_and_microsoft_are_the_cloud_leaders_by_a_fair_way/) Johnny Leadgen can get a copy (https://pages.awscloud.com/mq-download-report.html). On Oracle: “Gartner warns potential customers to be cautious of high-pressure sales tactics.” How Microsoft Is Shifting Focus to Open Source Link (https://thenewstack.io/microsoft-shifting-emphasis-open-source/) “Chef is used to manage thousands of nodes internally across Azure, Office 365 and Bing.” Amazon Eyeing Slack? Link (https://www.bloomberg.com/news/articles/2017-06-15/messaging-startup-slack-said-to-draw-interest-from-amazon-com) “Buying Slack would help Seattle-based Amazon bolster its enterprise services as it seeks to compete with rivals like Microsoft Corp. and Alphabet Inc.’s Google.” Walmart Buys Bonobo I’ve got a Bonobo suit I really like (https://www.geekwire.com/2017/walmart-buy-bonobos-310m-continues-e-commerce-battle-amazon/). They had ModCloth and some others. Their M&A strategy has really shifted of late. Walmart Sez Get Off the AWS Finally a reason for multi-cloud (https://thenewstack.io/wal-mart-kicks-partners-off-amazons-cloud-implications-organizations/) BigCo’s gonna bully that supply-chain. What’s Wrong with Jenkins? Jenkins is the Nagios of CI/CD (https://thenewstack.io/many-problems-jenkins-continuous-delivery/) “No toolchain is perfect, but you can achieve software delivery perfection (or something close to it, at least) when you implement the right culture.” Tools don’t substitute culture. Oracle’s Swinging For the Fences (and missing) Link (https://www.theregister.co.uk/2017/06/13/specsavers_says_no_to_oracle_cloud/) “He was also unwilling for Specsavers to become a guinea pig for Oracle's cloud.” Ubuntu Mobile Post Mortem Not much strategy… (http://www.lieberbiber.de/2017/06/20/my-ubuntu-for-mobile-devices-post-mortem/) Serverless and the Death of DevOps Link (http://redmonk.com/jgovernor/2017/06/02/serverless-and-the-the-death-of-devops-can-you-not/) Spoiler: “DevOps is the ultimate reactive, or event-driven, tech use case. It’s not going anywhere” State of DevOps 2017 Report Johnny Leadgen to the rescue (https://puppet.com/resources/whitepaper/state-of-devops-report)! Commercial Open Source Software Companies Link (https://docs.google.com/spreadsheets/u/1/d/17nKMpi_Dh5slCqzLSFBoWMxNvWiwt2R-t4e_l7LPLhU/htmlview#gid=0) A bit of sourcing on the numbers would be valuable Glad Chef’s not on the list, wouldn’t want to comment on the numbers Cloud Foundry Summit A whole mess of videos! 121 of them. (https://www.youtube.com/watch?list=PLhuMOCWn4P9hTlDEWJZV8JbVsW01avHF1&v=em-W0rVbCLc) Heptio Out of Stealth Mode with K8s Management Tool TheNewStack covere (https://thenewstack.io/heptio-comes-stealth-mode-ksonnet/) Official page (http://ksonnet.heptio.com/) File under “It didn’t already do that. I see.” Not sure this qualifies as “coming out of stealth”, everyone knows they work on open source K8s. I’m not seeing a monetization strategy yet beyond support & training. Not that there’s anything wrong with that, but they raised $8.5 for their A-round BMC Software Exploring Merging with CA STOP THE PRESSES! TERRIBLE MEETS TERRIBLE (https://mobile-reuters-com.cdn.ampproject.org/c/mobile.reuters.com/article/amp/idUSKBN19C036)? So far, no confirmation, but (https://www.streetinsider.com/Analyst+Comments/CA+Technologies+%28CA%29%3A+Anti+Trust+Should+Not+Prevent+CABMC+Merger+-+Bernstein/13052376.html): “While the two companies were once dominant in the systems management industry, the analyst notes that CA and BMC have 7.5% and 8% share respectively as of FY16 which combined would put them on a near even footing with IBM, the largest vendor, at 15%.” “There are also many other vendors in the market including MSFT (7%) and NOW (5%) so anti trust concerns should not be an issue.” High Level Kubernetes Overview Link (https://jvns.ca/blog/2017/06/04/learning-about-kubernetes/) “Basically Kubernetes is a distributed system that runs programs (well, containers) on computers. You tell it what to run, and it schedules it onto your machines.” More on Service Meshes From James Governor, RedMonk (https://redmonk.com/jgovernor/2017/05/31/so-what-even-is-a-service-mesh-hot-take-on-istio-and-linkerd/) Recommendations Brandon: The Scholar and the Drop Out podcast (https://itunes.apple.com/us/podcast/the-scholar-and-the-drop-out/id1143931540?mt=2); Coté’s add-on: Karl Lagerfella’s day (http://www.harpersbazaar.com/fashion/trends/a865/24-hours-with-karl-lagerfeld-0412/), no exercise and long night-shirts. Matt: Commando: Johnny Ramone’s Autobiography (https://www.amazon.com/dp/B007IV89TS/) Coté: Gulf Shores, Alabama; Hillbilly Elegy (http://amzn.to/2tpO6Gm) and “The Dead Pig Collector.” (http://amzn.to/2tpoU2L)
          Mastering PHP 7   

Effective, readable, and robust codes in PHP About This Book Leverage the newest tools available in PHP 7 to build scalable applications Embrace serverless architecture and the reactive programming paradigm, which are the latest additions to the PHP ecosystem Explore dependency injection and implement design patterns to write elegant code Who This Book Is For This book is for intermediate level developers who want to become a master of PHP. Basic knowledge of PHP is required across areas such as basic syntax, types, variables, constants, expressions, operators, control structures, and functions. What You Will Learn Grasp the current state of PHP language and the PHP standards Effectively implement logging and error handling during development Build services through SOAP and REST and Apache Trift Get to know the benefits of serverless architecture Understand the basic principles of reactive programming to write asynchronous code Practically implement several important design patterns Write efficient code by executing dependency injection See the working of all magic methods Handle the command-line area tools and processes Control the development process with proper debugging and profiling In Detail PHP is a server-side scripting language that is widely used for web development. With this book, you will get a deep understanding of the advanced programming concepts in PHP and how to apply it practically The book starts by unveiling the new features of PHP 7 and walks you through several important standards set by PHP Framework Interop Group (PHP-FIG). You’ll see, in detail, the working of all magic methods, and the importance of effective PHP OOP concepts, which will enable you to write effective PHP code. You will find out how to implement design patterns and resolve dependencies to make your code base more elegant and readable. You will also build web services alongside microservices architecture, interact with databases, and work around third-party packages to enrich applications. This book delves into the details of PHP performance optimization. You will learn about serverless architecture and the reactive programming paradigm that found its way in the PHP ecosystem. The book also explores the best ways of testing your code, debugging, tracing, profiling, and deploying your PHP application. By the end of the book, you will be able to create readable, reliable, and robust applications in PHP to meet modern day requirements in the software industry. Style and approach This is a comprehensive, step-by-step practical guide to developing scalable applications using PHP 7.1 Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Особенности использования Google Cloud Functions   

Сегодня речь пойдет об использовании Google Cloud Functions. Пару дней назад я решил попробовать подход serverless computing и сегодня готов поделиться с вами своим опытом. Итак, задача, которую я хотел решить – это сбор собственной базы курсов, которые предлагаются в этом блоге в дополнении к каждой статье. В настоящий момент при заходе каждого отдельного пользователя […]

The post Особенности использования Google Cloud Functions appeared first on Dev-Ops-Notes.RU.


          Platform9 Boosts Cloud Management with $22M Funding Round   
Managed OpenStack and Kubernetes services vendor looks to expand hybrid cloud and serverless platform.
          Mastering PHP 7   

Effective, readable, and robust codes in PHP About This Book Leverage the newest tools available in PHP 7 to build scalable applications Embrace serverless architecture and the reactive programming paradigm, which are the latest additions to the PHP ecosystem Explore dependency injection and implement design patterns to write elegant code Who This Book Is For This book is for intermediate level developers who want to become a master of PHP. Basic knowledge of PHP is required across areas such as basic syntax, types, variables, constants, expressions, operators, control structures, and functions. What You Will Learn Grasp the current state of PHP language and the PHP standards Effectively implement logging and error handling during development Build services through SOAP and REST and Apache Trift Get to know the benefits of serverless architecture Understand the basic principles of reactive programming to write asynchronous code Practically implement several important design patterns Write efficient code by executing dependency injection See the working of all magic methods Handle the command-line area tools and processes Control the development process with proper debugging and profiling In Detail PHP is a server-side scripting language that is widely used for web development. With this book, you will get a deep understanding of the advanced programming concepts in PHP and how to apply it practically The book starts by unveiling the new features of PHP 7 and walks you through several important standards set by PHP Framework Interop Group (PHP-FIG). You’ll see, in detail, the working of all magic methods, and the importance of effective PHP OOP concepts, which will enable you to write effective PHP code. You will find out how to implement design patterns and resolve dependencies to make your code base more elegant and readable. You will also build web services alongside microservices architecture, interact with databases, and work around third-party packages to enrich applications. This book delves into the details of PHP performance optimization. You will learn about serverless architecture and the reactive programming paradigm that found its way in the PHP ecosystem. The book also explores the best ways of testing your code, debugging, tracing, profiling, and deploying your PHP application. By the end of the book, you will be able to create readable, reliable, and robust applications in PHP to meet modern day requirements in the software industry. Style and approach This is a comprehensive, step-by-step practical guide to developing scalable applications using PHP 7.1 Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Does Going Serverless Save You Money?   
451 Research investigates whether serverless is cheaper, and which vendors give you the most bang for your buck

read more


          Monitoring cryptocurrency prices using JavaScript, Twilio Functions and SMS   
Twilio recently introduced Functions, a serverless environment to build and run Twilio apps. With Functions, you can build simple Twilio applications in JavaScript without worrying about configuring...

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]

          Cloud is cheaper than VMs and containers for most new applications   
A new report from 451 Research shows that serverless costs companies less. And IBM and Microsoft offer the best options, price-wise.
          תגובה לפוסט: "האם מחשוב הענן הגיע לסוף ימיו? על Serverless ו-FaaS" מאת "אאא"   
כתבה מצויינת שמסבירה את העקרון יפה. גיקטיים - כנראה שאתם צריכים להביא כותבים חיצוניים שיכתבו לכם תוכן...
          Linux Academy - Serverless Concepts   

Linux Academy - Serverless Concepts

Linux Academy - Serverless Concepts
Size: 768.21 MB | Duration: 1 hours 59 mins | Video: AVC (.mp4) 1920x1080 30fps | Audio: AAC 44KHz 2ch
Genre: eLearning | Language: English | + PDF (65-pages Study Guide)


          [video] @CAinc's DevOps Craftsmanship | @CloudExpo #AI #DX #APM #DevOps #Serverless   
Five years ago development was seen as a dead-end career, now it’s anything but – with an explosion in mobile and IoT initiatives increasing the demand for skilled engineers. But apart from having a ready supply of great coders, what constitutes true ‘DevOps Royalty’? It’ll be the ability to craft resilient architectures, supportability, security everywhere across the software lifecycle. In his keynote at @DevOpsSummit at 20th Cloud Expo, Jeffrey Scheaffer, GM and SVP, Continuous Delivery Business Unit at CA Technologies, shared his vision about the true ‘DevOps Royalty’ and how it will take a new breed of digital cloud craftsman, architecting new platforms with a new set of tools to achieve it. He also presented a number of important insights and findings from a recent cloud and DevOps study – outlining the synergies high performance teams are exploiting to gain significant business advantage.

read more


          [video] @TwistlockTeam Security Solutions | @CloudExpo #Serverless #DevOps #CloudNative    
"Suddenly a lot of companies started focusing on producing services in the cloud. I like to call it Cloud Native - everything is built for the cloud. The main concept there is to enable developers to work fast," explained Ben Bernstein, CEO & Co-Founder of Twistlock, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.

read more


          Mastering PHP 7   

Effective, readable, and robust codes in PHP About This Book Leverage the newest tools available in PHP 7 to build scalable applications Embrace serverless architecture and the reactive programming paradigm, which are the latest additions to the PHP ecosystem Explore dependency injection and implement design patterns to write elegant code Who This Book Is For This book is for intermediate level developers who want to become a master of PHP. Basic knowledge of PHP is required across areas such as basic syntax, types, variables, constants, expressions, operators, control structures, and functions. What You Will Learn Grasp the current state of PHP language and the PHP standards Effectively implement logging and error handling during development Build services through SOAP and REST and Apache Trift Get to know the benefits of serverless architecture Understand the basic principles of reactive programming to write asynchronous code Practically implement several important design patterns Write efficient code by executing dependency injection See the working of all magic methods Handle the command-line area tools and processes Control the development process with proper debugging and profiling In Detail PHP is a server-side scripting language that is widely used for web development. With this book, you will get a deep understanding of the advanced programming concepts in PHP and how to apply it practically The book starts by unveiling the new features of PHP 7 and walks you through several important standards set by PHP Framework Interop Group (PHP-FIG). You’ll see, in detail, the working of all magic methods, and the importance of effective PHP OOP concepts, which will enable you to write effective PHP code. You will find out how to implement design patterns and resolve dependencies to make your code base more elegant and readable. You will also build web services alongside microservices architecture, interact with databases, and work around third-party packages to enrich applications. This book delves into the details of PHP performance optimization. You will learn about serverless architecture and the reactive programming paradigm that found its way in the PHP ecosystem. The book also explores the best ways of testing your code, debugging, tracing, profiling, and deploying your PHP application. By the end of the book, you will be able to create readable, reliable, and robust applications in PHP to meet modern day requirements in the software industry. Style and approach This is a comprehensive, step-by-step practical guide to developing scalable applications using PHP 7.1 Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Invalidate cache cloudfront   

I don't believe there is a way to do it through CloudFormation, therefore not built in mechanism for doing it with serverless, unless you feel adventurous enough to write a plugin for it.


          Serverless Architecture based on a domain model?   

Hi There,

I have recently started using serverless, I completed the tutorial on serverless-stack.com and I wanted to see if there was a way could represent the domain model in an application. I've searched for some samples but I can't seem to find anything.

I have an application that I would like to model. How would I reference this in the main serverless.yml file? How would I make them part of the same API gateway?

/users
serverless.yml
/posts
serverless.yml
/comments
serverless.yml

thanks in advance


          How to create or update S3 in serverless.yml   

Have the same issue. Can anyone provide an answer please?


          Serverless with an existing CloudFormation   

I have an existing CloudFormation that is managed by a Python library (troposphere) and now I want to start using Serverless for managing my API Gateway and Lambda functions. Do you recommend converting the existing CloudFormation template to Serverless? Is it going to be painful to manage the stack using two different libraries?


          Serverless needs On premise Hosting   

Hi @soamvasani !
Do you know if Fission will be supported by Serverless? Have you guys been discussing this?
Looks like a promising solution :slight_smile:


          Invalidate cache cloudfront   

I was hoping to not use AWS cli and instead just use serverless as cloud agnostic devops. Not possible?


          How can I verify the CloudFormation changes before deployment?   

It's not spelled out in a simple changelog type format, but you can generate the CloudFormation files, using package instead of deploy.

example:
sls package -s <stage>

That generates the files in the .serverless folder including:
* cloudformation-template-update-stack.json
* serverless-state.json
* .zip

You can see the target Cloudformation state in the serverless-state.json file

Hope that helps.


          Good way to organize huge serverless.yml   

Thanks! This is very helpful!


          How can I verify the CloudFormation changes before deployment?   

Serverless just decided to drop all but one DynamoDB table, how can I check what modifications it's planning on making before I run deploy?

As far as I can tell there's no --dryrun on serverless deploy and I can't find an option to output the CloudFormation json.


          Access/get query parameters in aws lambda function   

Thanks for the update.

Can you please provide an example how we mention lambda-proxy / aws-proxy / aws_proxy in serverless.yml and how we access the request/path variable using aws lambda java for PUT method?

Thanks,
Bhasky


          HTTP POST path variable and request body with Java   

Hello everyone.

I am implement POST service using aws lambda with Java and serverless.

My requirement is:

I have URL where there is path variable resource (like this example : http://host.com/api/{userid}/create) and my request body is { "account": "serverless","account-id":"123"}

Can you please share me an example in serverless.yml file and what input object i have to use to access body and path variable?

public TestHandler extends requestHandler<Map, Response object) {

}

Will that work?

Please provide me examples

Thanks,
Bhasky


          Error with initial NPM install of Severless   

Hello folks!

This issue has been resolved and is available in the master branch https://github.com/serverless/serverless

It will be in the next release.

If you can't wait (:smiley:) you can install the framework from github.

npm i https://github.com/serverless/serverless -g

The next release should be out next Wednesday I believe


          Does Going Serverless Save You Money?   
451 Research investigates whether serverless is cheaper, and which vendors give you the most bang for your buck

read more


          האם מחשוב הענן הגיע לסוף ימיו? על Serverless ו-FaaS   
המגמה והגידול של Serverless ושל FaaS בפרט גדלים בצורה אקפוננציאלית, למה ומה המשמעות של זה בעצם?
          Microservices with Azure   

Architect enterprise-grade, Microservice-based solutions using Microsoft Azure Service Fabric. About This Book Explore architectural patterns for building modern day Microservice-based systems Learn about Microsoft Service Fabric as a platform to host distributed Microservices Discover multiple options for hosting Microservices on heterogeneous, cross-platform environments Learn to configure Azure Service Fabric clusters for enterprise-grade service deployments Who This Book Is For The book is aimed at IT architects, system administrators, and DevOps engineers who have a basic knowledge of the Microsoft Azure platform and are working on, or are curious about, the concepts of Microservices and Microservice architecture. What You Will Learn Understand the basics of Microservices and how Microsoft Azure fits into the equation Master Azure Service Fabric architecture and services Explore Azure Service Fabric application programming models Comprehensive study of various architecture patterns for building enterprise-grade Microservices Manage and deploy Microservices on Azure Service Fabric An insight into the future of Microservices with containers and serverless computing In Detail Microsoft Azure is rapidly evolving and is widely used as a platform on which you can build Microservices that can be deployed on-premise and on-cloud heterogeneous environments through Microsoft Azure Service Fabric. This book will help you understand the concepts of Microservice application architecture and build highly maintainable and scalable enterprise-grade applications using the various services in Microsoft Azure Service Fabric. We will begin by understanding the intricacies of the Microservices architecture and its advantages over the monolithic architecture and Service Oriented Architecture (SOA) principles. We will present various scenarios where Microservices should be used and walk you through the architectures of Microservice-based applications. Next, you will take an in-depth look at Microsoft Azure Service Fabric, which is the best–in-class platform for building Microservices. You will explore how to develop and deploy sample applications on Microsoft Azure Service Fabric to gain a thorough understanding of it. Building Microservice-based application is complicated. Therefore, we will take you through several design patterns that solve the various challenges associated with realizing the Microservices architecture in enterprise applications. Each pattern will be clearly illustrated with examples that you can keep referring to when designing applications. Finally, you will be introduced to advanced topics such as Serverless computing and DevOps using Service Fabric, to help you undertake your next venture with confidence. Style and approach This book introduces its readers to the concept of Microservices and Microsoft Azure Service Fabric as a distributed platform to host enterprise-grade Microservices. It then addresses common architectural challenges associated with the Microservice architecture, using proven architectural patterns. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Go Cookbook   

Bridge the gap between basic understanding of Go and use of its advanced features About This Book Discover a number of recipes and approaches to develop modern back-end applications Put to use the best practices to combine the recipes for sophisticated parallel tools This book is based on Go 1.8, which is the latest version Who This Book Is For This book is for web developers, programmers, and enterprise developers. Basic knowledge of the Go language is assumed. Experience with back-end application development is not necessary, but may help understand the motivation behind some of the recipes. What You Will Learn Test your application using advanced testing methodologies Develop an awareness of application structures, interface design, and tooling Create strategies for third-party packages, dependencies, and vendoring Get to know tricks on treating data such as collections Handle errors and cleanly pass them along to calling functions Wrap dependencies in interfaces for ease of portability and testing Explore reactive programming design patterns in Go In Detail Go (a.k.a. Golang) is a statically-typed programming language first developed at Google. It is derived from C with additional features such as garbage collection, type safety, dynamic-typing capabilities, additional built-in types, and a large standard library. This book takes off where basic tutorials on the language leave off. You can immediately put into practice some of the more advanced concepts and libraries offered by the language while avoiding some of the common mistakes for new Go developers. The book covers basic type and error handling. It explores applications that interact with users, such as websites, command-line tools, or via the file system. It demonstrates how to handle advanced topics such as parallelism, distributed systems, and performance tuning. Lastly, it finishes with reactive and serverless programming in Go. Style and approach This guide is a handy reference for developers to quickly look up Go development patterns. It is a companion to other resources and a reference that will be useful long after reading it through the first time. Each recipe includes working, simple, and tested code that can be used as a reference or foundation for your own applications. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Microservices with Azure   

Architect enterprise-grade, Microservice-based solutions using Microsoft Azure Service Fabric. About This Book Explore architectural patterns for building modern day Microservice-based systems Learn about Microsoft Service Fabric as a platform to host distributed Microservices Discover multiple options for hosting Microservices on heterogeneous, cross-platform environments Learn to configure Azure Service Fabric clusters for enterprise-grade service deployments Who This Book Is For The book is aimed at IT architects, system administrators, and DevOps engineers who have a basic knowledge of the Microsoft Azure platform and are working on, or are curious about, the concepts of Microservices and Microservice architecture. What You Will Learn Understand the basics of Microservices and how Microsoft Azure fits into the equation Master Azure Service Fabric architecture and services Explore Azure Service Fabric application programming models Comprehensive study of various architecture patterns for building enterprise-grade Microservices Manage and deploy Microservices on Azure Service Fabric An insight into the future of Microservices with containers and serverless computing In Detail Microsoft Azure is rapidly evolving and is widely used as a platform on which you can build Microservices that can be deployed on-premise and on-cloud heterogeneous environments through Microsoft Azure Service Fabric. This book will help you understand the concepts of Microservice application architecture and build highly maintainable and scalable enterprise-grade applications using the various services in Microsoft Azure Service Fabric. We will begin by understanding the intricacies of the Microservices architecture and its advantages over the monolithic architecture and Service Oriented Architecture (SOA) principles. We will present various scenarios where Microservices should be used and walk you through the architectures of Microservice-based applications. Next, you will take an in-depth look at Microsoft Azure Service Fabric, which is the best–in-class platform for building Microservices. You will explore how to develop and deploy sample applications on Microsoft Azure Service Fabric to gain a thorough understanding of it. Building Microservice-based application is complicated. Therefore, we will take you through several design patterns that solve the various challenges associated with realizing the Microservices architecture in enterprise applications. Each pattern will be clearly illustrated with examples that you can keep referring to when designing applications. Finally, you will be introduced to advanced topics such as Serverless computing and DevOps using Service Fabric, to help you undertake your next venture with confidence. Style and approach This book introduces its readers to the concept of Microservices and Microsoft Azure Service Fabric as a distributed platform to host enterprise-grade Microservices. It then addresses common architectural challenges associated with the Microservice architecture, using proven architectural patterns. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Go Cookbook   

Bridge the gap between basic understanding of Go and use of its advanced features About This Book Discover a number of recipes and approaches to develop modern back-end applications Put to use the best practices to combine the recipes for sophisticated parallel tools This book is based on Go 1.8, which is the latest version Who This Book Is For This book is for web developers, programmers, and enterprise developers. Basic knowledge of the Go language is assumed. Experience with back-end application development is not necessary, but may help understand the motivation behind some of the recipes. What You Will Learn Test your application using advanced testing methodologies Develop an awareness of application structures, interface design, and tooling Create strategies for third-party packages, dependencies, and vendoring Get to know tricks on treating data such as collections Handle errors and cleanly pass them along to calling functions Wrap dependencies in interfaces for ease of portability and testing Explore reactive programming design patterns in Go In Detail Go (a.k.a. Golang) is a statically-typed programming language first developed at Google. It is derived from C with additional features such as garbage collection, type safety, dynamic-typing capabilities, additional built-in types, and a large standard library. This book takes off where basic tutorials on the language leave off. You can immediately put into practice some of the more advanced concepts and libraries offered by the language while avoiding some of the common mistakes for new Go developers. The book covers basic type and error handling. It explores applications that interact with users, such as websites, command-line tools, or via the file system. It demonstrates how to handle advanced topics such as parallelism, distributed systems, and performance tuning. Lastly, it finishes with reactive and serverless programming in Go. Style and approach This guide is a handy reference for developers to quickly look up Go development patterns. It is a companion to other resources and a reference that will be useful long after reading it through the first time. Each recipe includes working, simple, and tested code that can be used as a reference or foundation for your own applications. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          (IT) Enterprise Cloud Developer   

Location: Tampa, FL   

Software Guidance & Assistance, Inc., (SGA), is searching for an Enterprise Cloud Developer for a contract assignment with one of our premier clients in Tampa, FL. Responsibilities: As an Enterprise Cloud Developer you will work closely with Development and Infrastructure teams to define, program, test and delivery Infrastructure and Platform as a Service (IaaS/PaaS) Public Cloud solutions. You will engage in direct application development activities (programming: design, code, test) supporting agile teams toward the rapid adoption of Amazon Web Services (AWS). The Enterprise Cloud Developer operates as a vital component of an Agile Squad. As a squad member you will collaborate with Development, Architecture and Infrastructure to implement technical designs. You will be engaged as a cloud implementation subject Matter Expert. As an Enterprise Cloud Developer you will possesses and maintain deep knowledge and experience with cloud computing infrastructure, application development platforms, tools and techniques. You will engage other teams with compelling ideas, designs, presentations, and discussions to help generate adoption of IaaS/PaaS Cloud. Required Skills : The candidate should have a BS degree in an IT related field or equivalent training and ten years working in an enterprise, mission critical environment (Financial Services a plus) 8+ years Application Development experience with Enterprise Java 3+ years CI/CD and DevOps experience 5+ years hands on experience with Enterprise Linux, Windows, or both 4+ years hands on experience with AWS, Certification a plus Strong understanding of Serverless Compute, Security, Transactional Processing, and High Resiliency. In depth knowledge of the AWS cloud computing platform, its many services and dimensions of scalability - including but not limited to: Lambda, S3 (Object Storage), VPC (Virtual Private Cloud), EC2, EBS (Block Storage under high I/O), ELB/Elastic Beanstalk (load-balancing and autoscaling), SQS(messaging), Cloud Formation for AWS Orchestration, Alternative Queuing Platforms, CloudWatch and RedShift. Strong knowledge of : REST, JSON, APIs, Micro-Services, JavaScript, AJAX, jQuery, Nodejs Agile/Scrum, Jira, Iterative, Team Development Track record of designing and implementing enterprise applications Serverless Compute, Security, Transactional Processing, and High Resiliency. Strong knowledge of Database and Database development tools: MySQL, PostgreSQL, AWS RDS, AWS Aurora, AWS DynamoDB, Oracle Experience working with automation tools, Cloud management tools Knowledge of federated authentication and authorization models Cloud methodologies and architecture (IaaS, PaaS), automation, orchestration Demonstrates strong analytical and communication skills Demonstrates strong customer service orientation Preferred Skills: Financial services a plus. SGA is a Certified Women s Business Enterprise (WBE) celebrating over thirty years of service to our national client base for both permanent
 
Type: Contract
Location: Tampa, FL
Country: United States of America
Contact: george wellington
Advertiser: Software Guidance & Assistance
Reference: NT17-02158

          April 13 - Serverless Deployments in AWS   
Topic: 
How to Deploy Python Applications using AWS Lambda, API Gateway, and CloudFront
Presenter: 
Brian Jinwright
When: 
Thursday, 13 April 2017 - 7:00pm to 9:00pm
Where: 
The Frontier, 800 Park Offices Drive, Durham, NC
Parking: 
Parking is free, onsite

Summary
Tonight's talk will go in depth about the advantages and drawbacks of going serverless. A demo will illustrate deploying a generic Python application using AWS' SAM (Serverless Application Model), a Flask (WSGI) application using Zappa, and why you should reconsider your position on CloudFront.

Speaker
Brian Jinwright is a Senior Software Engineer and resident AWS wizard at MetaMetrics, of Durham, NC where he has deployed various serverless django applications for production in AWS such as the company's homepage: metametricsinc.com.

APR-13 Meeting Announcements


          February 9 - Hackable Drones, Drone Laws, and The Development of the UAS Ecosystem in North Carolina   
Topic: 
Hackable Drones and Drone Laws
Presenter: 
Adrian Pomilio, James Vann, Kyle Snyder
When: 
Thursday, 9 February 2017 - 7:00pm to 9:00pm
Where: 
The Frontier, 800 Park Offices Drive, Durham, NC
Parking: 
Parking is free, onsite

Many thanks to Eric Leary of DataKraft for the excellent recording and editing work!

This event will feature 3 excellent speakers, and we will be giving away a drone!

We will begin with Adrian Pomilio, UI Architect and Platform Architecture Team Lead for Mapp Digital, presenting on the topic of hacking drones. Next we have James Vann of Vann Attorneys Law Firm presenting the on the lastest drone laws and legislation. Finally we will hear from Kyle Snyder, Director of The NextGen Air Transportation Program (NGAT), NCSU Institute for Transportation Research and Education, which is a Consortium of academia, industry, and government members. This meeting will tie together the regulations, the research activities, the economic opportunities, the transportation infrastructure, and future directions.

1st Presentation: Hackable Drones
Video: YouTube
There has been a lot of talk about drones, and you can pretty much buy some type of a drone at the corner store. But can you control it with JavaScript? Can you tap into the OS and make the drone do your bidding? Or are you just stuck with what they give you in the box? This talk will cover two hackable drones as well as libraries you can leverage to control a myriad of non-traditional devices. Think of it as IOT before IOT. We will have live code, and a few demonstrations, and then we will raffle off one of the drones used in the presentation. This is a light hearted presentation and not a deep dive into aerospace engineering.

Bio: Adrian Pomilio is a UI Architect and Platform Architecture Team Lead for Mapp Digital in Raleigh NC. Adrian has been designing/architecting enterprise applications in the B2B and B2C space. With a heavy focus on front-end technologies JavaScript is at the forefront of his coding adventures. Currently he is heavily focusing on serverless and IOT architecture when he is not spending his free time with his two sons.

2nd Presentation: Drone Laws
Video: YouTube
James Vann from Vann Attorneys will present on drone laws. Full abstract and bio is forthcoming.

3rd Presentation: The Development of the UAS Ecosystem in North Carolina
Video: YouTube
"I will bring some slides with some of the work we have been doing to support UAS integration around the state since 2012. I will also talk about our role on the FAA UAS Center of Excellence ASSURE team. And I will talk about opportunities for getting involved with the NGAT Consortium here at NC State (my office) and what we are working on as a community. Our focus is developing North Carolina as an advanced aviation communications testbed for transitioning all aviation activities into a digitized operating environment, not just drones."

Bio: In 2012 Kyle returned home to North Carolina to lead the development of an Unmanned Aircraft Systems (UAS) Ecosystem as part of an effort to transition the state to a modern air transportation system. In the role as the NGAT Consortium Director at NC State University, Kyle is reaching across North Carolina to connect researchers and educators with industry and government offices that are preparing for future aviation capabilities. Kyle has spent his entire career researching, developing, testing, educating, and advocating for new aerospace and aviation technologies. Having seen the initial Space Shuttle launches from his backyard as kid, to standing on the flight line for a couple of the last SR-71 flights at NASA Dryden, to being a driving force in the domestic integration of UAS for civil and commercial operations, Kyle continues to be inspired by the science of flight and seeks to share those moments with those around him (especially his wife and young son!).
https://itre.ncsu.edu/wp-content/uploads/2016/03/SnyderK.pdf

This is going to be an amazing event you do not want to miss!


          DevOps дайджест #14: акцент на Kubernetes, нужны ли вам SRE и как зарабатывать больше   

Пока мир борется с Петей, у DevOps опять куча нового!

Новое и трендовое

Kubernetes By Example
Очень просто и доступно описаны основные примитивы в Kubernetes, с реальными командами и их выводом. Полезно полистать и пощупать.

GitLab 9.3 Released with Code Quality and Multi-Project Pipeline Graphs
Релизнулся Gitlab, покращення! Теперь удобнее ревьювить и крутить Gitlab CI. И еще куча новых плюх.

How we built rate limiting capable of scaling to millions of domains
Cloudflare научились очень круто работать с лимитами — теперь можно блокировать юзера из-за неудачных попыток ввода, многократного использования API эндпоинтов, подозрительных для вас действий. Как они это сделали и с какими проблемами столкнулись — все это в статье.

Большие инфраструктуры, распределенные архитектуры

The DevOps tool arsenal
Графики с наиболее популярными и используемыми тулами в DevOps/SRE мире. Это про западный рынок. У нас, скорее всего, будут другие результаты. В двух словах: тащат Jenkins, AWS, Docker.

Making the Internet Archive’s full text search faster
Вот прямо очень крутая статья про тонкий тюнинг и настройку кластера из Elasticsearch. В самом большом архиве интернета оказывается есть поиск по 25TB данных, и в статье достаточно глубоко описано со всех сторон, куда смотреть и что делать, чтобы искать в 10 раз быстрее.

Dynamically Provisioned PV’s Using Amazon EFS in a MultiAZ Kubernetes setup
Как сделать геораспределенную и отказоустойчивую инсталляцию Kubernetes в AWS.

Improving Critical Infrastructure Rollouts
Статья о том, как Spotify живут с Docker в продакшне.

Гайды и туториалы

Terraform Gotchas And How We Work Around Them
Heap таки перестали мануально конфигурить AWS и накрутили Terraform, следуя концепции Infrastructure as Code. У них все получилось, и они с удовольствием рассказали, как.

Going Serverless: how to run your first AWS Lambda function in the cloud
Великолепно о AWS Lambda. С картиночками, как вы любите.

State Drift Detection using Terraform
Учимся правильно работать и понимать tfstate в Terraform.

Kubernetes Production Patterns
Один из топовых воркшопов на тему, как правильно и как неправильно готовить Kubernetes.

Интересные мысли

Is it possible to host Facebook on AWS?
Отличная статья с кучей разных расчетов на тему гипотетической стоимости инфраструктуры Facebook в Amazon. Очень интересные выводы и ход мысли, все как вы любите.

You Are Not Google
Глубокая статья о том, почему не стоит использовать Hype Driven Development, и с умом выбирать все технологии и инструменты. Автор объясняет, почему вам не нужны Cassandra, Kafka, SOA и другие технологии. Основная суть — подбирать технологию под проблему, а не потому, что это модно или это используют большие компании.

Why should your app get SRE support?
Ответы на вопросы о том, как в реальной жизни на самом деле работают SRE, как правильно готовить такие команды и получать максимальный профит. Также рассматривается вопрос правильного выбора продукта для поддержки такой командой.

Developers Who Use Spaces Make More Money Than Those Who Use Tabs
Разработчики, которые предпочитают пробелы вместо табов зарабатывают больше — статистика Stackoverflow. Предлагаю прямо сейчас менять codestyle в IDE, и на следующем ревью аргументированно просить повышения.

Ой, упало

Та вроде ничего особо и не падало.

Интересные видео

Великолепный доклад от Кирилла Перевозчикова из DataRobot о DevOps методологии, правильном понимании, концепциях и будущем. Рекомендую!

Послесловие

Как всегда, пишите в комментарии ваши линки, достойные внимания, устраивайте холивары на разные темы, делайте репосты. Давайте развивать наше комьюнити вместе!


← Предыдущий выпуск: DevOps дайджест #13


          Microservices with Azure   

Architect enterprise-grade, Microservice-based solutions using Microsoft Azure Service Fabric. About This Book Explore architectural patterns for building modern day Microservice-based systems Learn about Microsoft Service Fabric as a platform to host distributed Microservices Discover multiple options for hosting Microservices on heterogeneous, cross-platform environments Learn to configure Azure Service Fabric clusters for enterprise-grade service deployments Who This Book Is For The book is aimed at IT architects, system administrators, and DevOps engineers who have a basic knowledge of the Microsoft Azure platform and are working on, or are curious about, the concepts of Microservices and Microservice architecture. What You Will Learn Understand the basics of Microservices and how Microsoft Azure fits into the equation Master Azure Service Fabric architecture and services Explore Azure Service Fabric application programming models Comprehensive study of various architecture patterns for building enterprise-grade Microservices Manage and deploy Microservices on Azure Service Fabric An insight into the future of Microservices with containers and serverless computing In Detail Microsoft Azure is rapidly evolving and is widely used as a platform on which you can build Microservices that can be deployed on-premise and on-cloud heterogeneous environments through Microsoft Azure Service Fabric. This book will help you understand the concepts of Microservice application architecture and build highly maintainable and scalable enterprise-grade applications using the various services in Microsoft Azure Service Fabric. We will begin by understanding the intricacies of the Microservices architecture and its advantages over the monolithic architecture and Service Oriented Architecture (SOA) principles. We will present various scenarios where Microservices should be used and walk you through the architectures of Microservice-based applications. Next, you will take an in-depth look at Microsoft Azure Service Fabric, which is the best–in-class platform for building Microservices. You will explore how to develop and deploy sample applications on Microsoft Azure Service Fabric to gain a thorough understanding of it. Building Microservice-based application is complicated. Therefore, we will take you through several design patterns that solve the various challenges associated with realizing the Microservices architecture in enterprise applications. Each pattern will be clearly illustrated with examples that you can keep referring to when designing applications. Finally, you will be introduced to advanced topics such as Serverless computing and DevOps using Service Fabric, to help you undertake your next venture with confidence. Style and approach This book introduces its readers to the concept of Microservices and Microsoft Azure Service Fabric as a distributed platform to host enterprise-grade Microservices. It then addresses common architectural challenges associated with the Microservice architecture, using proven architectural patterns. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Go Cookbook   

Bridge the gap between basic understanding of Go and use of its advanced features About This Book Discover a number of recipes and approaches to develop modern back-end applications Put to use the best practices to combine the recipes for sophisticated parallel tools This book is based on Go 1.8, which is the latest version Who This Book Is For This book is for web developers, programmers, and enterprise developers. Basic knowledge of the Go language is assumed. Experience with back-end application development is not necessary, but may help understand the motivation behind some of the recipes. What You Will Learn Test your application using advanced testing methodologies Develop an awareness of application structures, interface design, and tooling Create strategies for third-party packages, dependencies, and vendoring Get to know tricks on treating data such as collections Handle errors and cleanly pass them along to calling functions Wrap dependencies in interfaces for ease of portability and testing Explore reactive programming design patterns in Go In Detail Go (a.k.a. Golang) is a statically-typed programming language first developed at Google. It is derived from C with additional features such as garbage collection, type safety, dynamic-typing capabilities, additional built-in types, and a large standard library. This book takes off where basic tutorials on the language leave off. You can immediately put into practice some of the more advanced concepts and libraries offered by the language while avoiding some of the common mistakes for new Go developers. The book covers basic type and error handling. It explores applications that interact with users, such as websites, command-line tools, or via the file system. It demonstrates how to handle advanced topics such as parallelism, distributed systems, and performance tuning. Lastly, it finishes with reactive and serverless programming in Go. Style and approach This guide is a handy reference for developers to quickly look up Go development patterns. It is a companion to other resources and a reference that will be useful long after reading it through the first time. Each recipe includes working, simple, and tested code that can be used as a reference or foundation for your own applications. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Does Going Serverless Save You Money?   
451 Research investigates whether serverless is cheaper, and which vendors give you the most bang for your buck Read More...
          Does Going Serverless Save You Money?   
451 Research investigates whether serverless is cheaper, and which vendors give you the most bang for your buck

read more


          5 Current DevOps Trends MSPs Should Know   
DevSecOps, NoOps, serverless computing and more will drive the next phase of innovation in the DevOps world.

read more


          Microservices with Azure   

Architect enterprise-grade, Microservice-based solutions using Microsoft Azure Service Fabric. About This Book Explore architectural patterns for building modern day Microservice-based systems Learn about Microsoft Service Fabric as a platform to host distributed Microservices Discover multiple options for hosting Microservices on heterogeneous, cross-platform environments Learn to configure Azure Service Fabric clusters for enterprise-grade service deployments Who This Book Is For The book is aimed at IT architects, system administrators, and DevOps engineers who have a basic knowledge of the Microsoft Azure platform and are working on, or are curious about, the concepts of Microservices and Microservice architecture. What You Will Learn Understand the basics of Microservices and how Microsoft Azure fits into the equation Master Azure Service Fabric architecture and services Explore Azure Service Fabric application programming models Comprehensive study of various architecture patterns for building enterprise-grade Microservices Manage and deploy Microservices on Azure Service Fabric An insight into the future of Microservices with containers and serverless computing In Detail Microsoft Azure is rapidly evolving and is widely used as a platform on which you can build Microservices that can be deployed on-premise and on-cloud heterogeneous environments through Microsoft Azure Service Fabric. This book will help you understand the concepts of Microservice application architecture and build highly maintainable and scalable enterprise-grade applications using the various services in Microsoft Azure Service Fabric. We will begin by understanding the intricacies of the Microservices architecture and its advantages over the monolithic architecture and Service Oriented Architecture (SOA) principles. We will present various scenarios where Microservices should be used and walk you through the architectures of Microservice-based applications. Next, you will take an in-depth look at Microsoft Azure Service Fabric, which is the best–in-class platform for building Microservices. You will explore how to develop and deploy sample applications on Microsoft Azure Service Fabric to gain a thorough understanding of it. Building Microservice-based application is complicated. Therefore, we will take you through several design patterns that solve the various challenges associated with realizing the Microservices architecture in enterprise applications. Each pattern will be clearly illustrated with examples that you can keep referring to when designing applications. Finally, you will be introduced to advanced topics such as Serverless computing and DevOps using Service Fabric, to help you undertake your next venture with confidence. Style and approach This book introduces its readers to the concept of Microservices and Microsoft Azure Service Fabric as a distributed platform to host enterprise-grade Microservices. It then addresses common architectural challenges associated with the Microservice architecture, using proven architectural patterns. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Go Cookbook   

Bridge the gap between basic understanding of Go and use of its advanced features About This Book Discover a number of recipes and approaches to develop modern back-end applications Put to use the best practices to combine the recipes for sophisticated parallel tools This book is based on Go 1.8, which is the latest version Who This Book Is For This book is for web developers, programmers, and enterprise developers. Basic knowledge of the Go language is assumed. Experience with back-end application development is not necessary, but may help understand the motivation behind some of the recipes. What You Will Learn Test your application using advanced testing methodologies Develop an awareness of application structures, interface design, and tooling Create strategies for third-party packages, dependencies, and vendoring Get to know tricks on treating data such as collections Handle errors and cleanly pass them along to calling functions Wrap dependencies in interfaces for ease of portability and testing Explore reactive programming design patterns in Go In Detail Go (a.k.a. Golang) is a statically-typed programming language first developed at Google. It is derived from C with additional features such as garbage collection, type safety, dynamic-typing capabilities, additional built-in types, and a large standard library. This book takes off where basic tutorials on the language leave off. You can immediately put into practice some of the more advanced concepts and libraries offered by the language while avoiding some of the common mistakes for new Go developers. The book covers basic type and error handling. It explores applications that interact with users, such as websites, command-line tools, or via the file system. It demonstrates how to handle advanced topics such as parallelism, distributed systems, and performance tuning. Lastly, it finishes with reactive and serverless programming in Go. Style and approach This guide is a handy reference for developers to quickly look up Go development patterns. It is a companion to other resources and a reference that will be useful long after reading it through the first time. Each recipe includes working, simple, and tested code that can be used as a reference or foundation for your own applications. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Resoconto primo incontro Meetup "Machine-Learning e Data Science" (3 febbraio 2017)   

170203-ml-meetup.jpg

Il 2 febbraio 2017 si è svolto a Roma il primo incontro del Meetup "Machine-Learning e Data-Science"  (fb) presso la Sala Storica di LUISS ENLABS.

Agenda

  • Simone Scardapane e Gabriele Nocco, presentazione del Meetup "Machine-Learning e Data Science"
  • Gianluca Mauro (AI-Academy): Intelligenza artificiale per il tuo business
  • Lorenzo Ridi (Noovle): Serverless Data Architecture at scale on Google Cloud Platform

Simone Scardapane e Gabriele Nocco, presentazione del Meetup "Machine-Learning e Data Science"

161022-simone-scardapane.jpg

(Simone Scardapane)

Simone (mup, web, fb, lk) ha rapidamente illustrato le finalità del Meetup "Machine-Learning e Data-Science" 
“Vogliamo creare una comunità di appassionati e professionisti di ML, AI e Data Science” ha detto Simone, “un luogo dove trovare risposte a domande quali:

  1. Sono appassionato di Ml, dove trovo altri esperti?
  2. Cerchiamo qualcuno esperto di ML, ne conosci?
  3. Mi piacerebbe avvicinarmi a ML, come faccio?”

gabrielenocco.jpeg

(Gabriele Nocco)

Gabriele Nocco (mup , fb, lk) ha annunciato che il secondo evento del Meetup si terrà a Roma il 16 febbraio 2017 al Talent Garden di Cinecittà (mappa) in collaborazione con il Google Dev Group di Roma . Per partecipare occorre registrarsi – gratuitamente – a EventBrite.
“Parleremo di TensorFlow  e proietteremo il keynote ed alcuni momenti salienti del primo TensorFlow Dev Summit per tutti gli appassionati di deep learning e, grazie anche alla gentile sponsorship di Google, avremo il nostro secondo momento di networking condiviso nei bellissimi spazi a nostra disposizione” ha detto Gabriele.
innocenzo-sansone.jpg

(Innocenzo Sansone)

È intervenuto anche Innocenzo Sansone (fb, tw , lk)  – tra gli organizzatori e sponsor – che ha ricordato che il 24 e 25 marzo 2017 a Roma avrà luogo Codemotion  nel quale è previsto – tra gli altri – anche un track specifico sul Machine Learning.

Gianluca Mauro (AI-Academy ): Intelligenza artificiale per il tuo business

170203-gianluca-mauro2.jpg

(Gianluca Mauro)

Gianluca (blog, lk) – ingegnere, imprenditore, esperto di AI, ML e Data Science – è anche uno dei 3 fondatori – insieme a Simone Totaro  (lk)  e Nicolò Valigi (lk) - di AI-Academy  una startup che si prefigge di favorire l’utilizzo dell’Intelligenza Artificiale nei processi di business aziendali (vedi AI Academy manifesto).

ai-academy.jpg

Breve storia dell’Intelligenza Artificiale

Nella prima parte del suo intervento Gianluca ha delineato lo sviluppo storico dell’Intelligenza artificiale.
Gli inizi della IA si devono alla conferenza tenutesi a Dartmouth – USA - nel 1956  ed organizzata da John McCarthy, Marvin Minsky, Nathaniel Rochester e Claude Shannon: per la prima volta si parla di “intelligenza artificiale” e viene indicato l’obiettivo di “costruire una macchina che simuli totalmente l’intelligenza umana” proponendo temi di ricerca che negli anni successivi avranno un grande sviluppo: reti neurali, teoria della computabilità, creatività e elaborazione del linguaggio naturale.

dartmouth.jpg
 
Fonte immagine: http://www.scaruffi.com/mind/ai.html

La ricerca IA viene generosamente finanziata dal governo statunitense fino alla metà degli anni 60: di fronte alla mancanza di risultati concreti i finanziamenti cessano dando origine al primo “AI winter” (1966 – 1980).
Negli anni 80 l’IA riprende vigore grazie a un cambio di paradigma: invece di inseguire l’obiettivo di riprodurre artificialmente l’intera intelligenza umana si ripiega sulla realizzazione di “Sistemi esperti” in grado di simulare le conoscenze in ambiti delimitati.
Anche questo 2° tentativo ha però scarsa fortuna causando il nuovo “AI winter” che si protrae fino agli inizi degli anni 90 quando comincia a imporsi una nuova disciplina: il Machine Learning.

Cos’è il Machine Learning?

AI.jpg

Fonte immagine: http://www.thebluediamondgallery.com/tablet/a/artificial-intelligence.html

Il Machine Learning – ha spiegato Gianluca – è una branca dell’Intelligenza Artificiale che si propone di realizzare algoritmi che a partire dai dati ricevuti in input si adattino in maniera automatica così da produrre risultati “intelligenti” quali previsioni e raccomandazioni.
Gianluca ha fatto l’esempio di un bambino che impara a camminare: non serve conoscere la legge di gravità ed è sufficiente osservare come cammina la mamma e riprovare fino a che non si trova l’equilibrio.

Cos’è il Deep Learning?

Il deep learning è un sottoinsieme del Machine Learning e si rivolge alla progettazione, allo sviluppo, al testing e soprattutto al traning delle reti neurali e di altre tecnologie per l’apprendimento automatico.
Il deep learning è alla base degli spettacolari successi dell’IA nel campo dei giochi da tavolo: la vittoria agli scacchi di Deep Blue di IBM contro il campione del mondo in carica, Garry Kasparov,  e la vittoria di Alphago di Google contro il campione del mondo di GO .

This is the golden age of Artificial Intelligence

Secondo Gianluca Mauro questo è il momento magico per l’IA perché finalmente abbiamo gli strumenti – algoritmi, data, computing power – necessari per realizzare applicazioni di ML a costi sempre più bassi.
Gli algoritmi sono ormai collaudati grazie ai lavori pubblicati negli ultimi anni a cominciare da quelli di Corinna Cortes (“Support-vector networks”) e Davide Rumelhart (“Learning representations by back-propagating errors”).
Il computing power è rappresentato principalmente dalla grande quantità di tecnologie open source a disposizione.
La combinazione di tutti questi fattori è rivoluzionario come dice Chris Dixon, uno dei più noti esponenti del Venture capital USA:
“La maggior parte degli studi di ricerca, degli strumenti e degli strumenti sw legati al ML sono open source. Tutto ciò ha avuto un effetto di democratizzazione che consente a piccole imprese e addirittura a singoli individui di realizzare applicazioni veramente potenti. WhatsApp è stato in grado di costruire un sistema di messaggistica globale che serve 900 milioni di utenti assumendo solo 50 ingegneri rispetto alle migliaia di ingegneri che sono stati necessari per realizzare i precedenti di sistemi di messaggistica. Questo "effetto WhatsApp" sta accadendo adesso nell’Intelligenza Artificiale. Strumenti software come Theano e TensorFlow, in combinazione con i cloud data centers per i training, e con le GPU a basso costo per il deployment consentono adesso a piccole squadre di ingegneri di realizzare sistemi di intelligenza artificiale innovativi e competitivi”.
Secondo Gianluca l’IA presto sarà una necessità per qualsiasi azienda o per citare Pedro Domingos: “A company without Machine Learning can’t keep up with one that uses it”.
Secondo Andrew Ng, chief scientist in Baidu, AI e ML stanno già trasformando le imprese perché le obbligheranno a rivoluzionare i loro processi produttivi così come accadde nell’800 quando fu disponibile per la prima volta elettricità a basso costo (video).
Questo cambiamento culturale è già avvertibile nel Venture Capital e nel Merger & Acquisition: le grandi imprese non cercano solo startup che si occupano di ricerca pura nell’ML ma startup che realizzano servizi e prodotti con ML embedded.
“Siamo all’alba di una nuova era” ha concluso Gianluca “quella del Machine Learning as a feature”.

Lorenzo Ridi (Noovle): Serverless Data Architecture at scale on Google Cloud Platform

lorenzo-ridi.jpeg

(Lorenzo Ridi)

Lorenzo Ridi (mup, fb, lk),  tw) ha presentato un caso d’uso concreto (qui disponibile nella sua versione integrale , anche su SlideShare) per mostrare i vantaggi di usare l’architettura su Google Cloud Platform, attraverso sole componenti serverless, in applicazioni con Machine-Learnin embedded.
Il caso d’uso riguarda una società che con l’avvicinarsi del Black Friday decide di commissionare un’indagine sui social, e in particolare su Twitter, per catturare insights utili a posizionare correttamente i propri prodotti, prima e durante l’evento: questo è tanto più cruciale quanto si considera l’enorme dimensione del catalogo aziendale perché indirizzare in modo sbagliato la propria campagna pubblicitaria e promozionale sarebbe un errore fatale.
Tuttavia, per gestire il forte traffico atteso durante l’evento, gli ingegneri di ACME decidono di abbandonare le tecnologie tradizionali, e di implementare questa architettura su Google Cloud Platform, attraverso sole componenti serverless:

170203-google-architecture-ml1.jpg
 
Ingestion

Per recuperare i dati viene implementata una semplice applicazione Python che, attraverso la libreria TweePy, accede alle Streaming API di Twitter recuperando il flusso di messaggi riguardanti il Black Friday e le tematiche ad esso connesse.
Per fare in modo che anche questa componente mantenga gli standard di affidabilità prefissati, si decide di eseguirla, all’interno di un container Docker, su Google Container Engine, l’implementazione di Kubernetes su Google Cloud Platform. In questo modo, non dovremo preoccuparci di eventuali outage o malfunzionamenti. Tutto è gestito (e all’occorrenza automaticamente riavviato) da Kubernetes.

170203-google-architecture-ml2.jpg
 
Innanzitutto creiamo l’immagine Docker che utilizzeremo per il deploy. A questo scopo è sufficiente redigere opportunamente un Dockerfile che contenga le istruzioni per installare le librerie necessarie, copiare la nostra applicazione ed avviare lo script:

170203-google-architecture-ml3.jpg
 
Et voilà! L’immagine Docker è pronta per essere eseguita ovunque: sul nostro laptop, su un server on-prem o, come nel nostro caso, all’interno di un cluster Kubernetes. Il deploy su Container Engine è semplicissimo, con il tool da riga di comando di Google Cloud Platform: tre sole istruzioni che servono a creare il cluster Kubernetes, acquisire le credenziali di accesso ed eseguire l’applicazione in modo scalabile ed affidabile all’interno di un ReplicationController.
Il secondo elemento della catena, la componente cioè verso la quale la nostra applicazione invierà i tweet, è Google Pub/Sub. una soluzione middleware fully-managed, che realizza un’architettura Publisher/Subscriber in modo affidabile e scalabile.
Nella fase di processing, utilizziamo altri due strumenti della suite Google Cloud Platform:

  • Google Cloud Dataflow è un SDK Java open source – adesso noto sotto il nome di Apache Beam – per la realizzazione di pipeline di processing parallele. Inoltre, Cloud Dataflow è il servizio fully managed operante sull’infrastruttura Google, che esegue in modo ottimizzato pipeline di processing scritte con Apache Beam.
  • Google BigQuery è una soluzione di Analytic Data Warehouse fully managed. Le sue performance strabilianti, che abbiamo avuto modo di sottolineare più volte, lo rendono una soluzione ottimale all’interno di architetture di Data Analytics.

La pipeline che andiamo a progettare è estremamente semplice. Di fatto non farà altro che trasformare la struttura JSON che identifica ogni Tweet, inviata dalle API di Twitter e recapitata da Pub/Sub, in una struttura record BigQuery. Successivamente, attraverso le BigQuery Streaming API, ogni record verrà scritto in una tabella in modo tale che i dati possano essere immediatamente analizzati.
 170203-google-architecture-ml4.jpg
Il codice della pipeline è estremamente semplice; questo è in effetti uno dei punti di forza di Apache Beam rispetto ad altri paradigmi di processing, come MapReduce. Tutto ciò che dobbiamo fare è creare un oggetto di tipo Pipeline e poi applicare ripetutamente il metodo apply() per trasformare i dati in modo opportuno. È interessante osservare come i dati vengano letti e scritti utilizzando due elementi di I/O inclusi nell’SDK: PubSubIO e BigQueryIO. Non è quindi necessario scrivere codice boilerplate per implementare l’integrazione tra i sistemi.

Machine learning

Per visualizzare graficamente i risultati utilizziamo Google Data Studio, uno strumento della suite Google Analytics che consente di costruire visualizzazioni grafiche di vario tipo a partire da diverse sorgenti dati, tra le quali ovviamente figura anche BigQuery.
Possiamo poi condividere le dashboard, oppure renderle pubblicamente accessibili, esattamente come faremmo con un documento Google Drive.

170203-ml5.jpg
 
In questo grafico è riportato il numero di Tweet collezionato da ogni stato dell’Unione. Sicuramente d’impatto, ma non molto utile per il nostro scopo. In effetti, dopo un po’ di analisi esplorativa dei dati, ci accorgiamo che con i soli tweet collezionati non riusciamo a fare analisi molto “avanzate”. Dobbiamo quindi rivedere la nostra procedura di processing per cercare di inferire qualche elemento di conoscenza più “interessante”.
Google Cloud Platform ci viene in aiuto, in questo caso offrendoci una serie di API, basate su algoritmi di Machine Learning, il cui scopo è esattamente aggiungere un pizzico di “intelligenza” al nostro processo di analisi. In particolare utilizzeremo le Natural Language API, che ci saranno utili per recuperare il sentiment di ogni tweet, cioè un indicatore numerico della positività (o negatività) del testo contenuto nel messaggio.

170203-google-architecture-ml6.jpg
 
La API è molto semplice da usare: prende in ingresso un testo (il nostro tweet) e restituisce due parametri:

  • Polarity (FLOAT variabile da -1 a 1) esprime l’umore del testo: valori positivi denotano sentimenti positivi.
  • Magnitude (FLOAT variabile da 0 a +inf) esprime l’intensità del sentimento. Valori più alti denotano sentimenti più forti (siano essi rabbia o gioia).

La nostra personale semplicistica definizione di “sentiment” altro non è che il prodotto di questi due valori. In questo modo siamo in grado di assegnare un valore numerico ad ogni tweet – ed auspicabilmente, di tirarne fuori delle statistiche interessanti!
La pipeline Dataflow viene modificata in modo da includere, oltre al flusso precedente, anche questo nuovo step. Tale modifica è molto semplice, e visto il modello di programmazione di Cloud Dataflow, permette un notevole riuso del codice esistente.

170203-google-architecture-ml7.jpg
 

Con questi nuovi dati possiamo realizzare delle analisi molto più interessanti, che ci informano sulla distribuzione geografica e temporale del “sentimento” riguardante l’evento Black Friday.
La mappa che segue, ad esempio, mostra il sentiment medio registrato in ognuno degli stati degli US, colori più scuri rappresentano sentiment più negativi (quel quadrato rosso là in mezzo è il Wyoming).

170203-google-architecture-ml8.jpg
 
Quest’altra analisi invece riporta l’andamento del sentiment legato ai tre maggiori vendor statunitensi: Amazon, Walmart e Best Buy. A partire da questa semplice analisi, con un po’ di drill-down sui dati, siamo riusciti a carpire alcuni fatti interessanti:

  • il popolo di Twitter non ha apprezzato la decisione di Walmart di anticipare l’apertura delle proprie vendite al giorno precedente il Black Friday, la festa nazionale del Thanksgiving Day. La popolarità di Walmart è stata infatti minata fin dai primi di Novembre da questa decisione  – d’altronde, la tutela dei lavoratori è un tema universale.
  • Le vendite promozionali di Amazon (aperte il 18 Novembre, quindi con anticipo rispetto al Black Friday) sono state inizialmente duramente criticate dagli utenti, con un crollo della popolarità che ha raggiunto il suo minimo il 22. In seguito però il colosso delle vendite online ha recuperato terreno rispetto a Best Buy, che invece sembra aver mantenuto intatta la sua buona reputazione per tutto il periodo.

170203-google-architecture-ml9.jpg

Contatti

Leggi anche

AG-Vocabolario: 

          Linux Academy - Serverless Concepts   
Linux Academy - Serverless Concepts
Linux Academy - Serverless Concepts
Size: 768.21 MB | Duration: 1 hours 59 mins | Video: AVC (.mp4) 1920x1080 30fps | Audio: AAC 44KHz 2ch
Genre: eLearning | Language: English | + PDF (65-pages Study Guide)


          Serverless WebRTC, continued   
Around a year ago, in WebRTC without a signaling server, I presented an simple app that can start a chat session with another browser without using a local web server (i.e. you just browse to file:///), and without using a signaling server (instead of both going to the same web page to share “offers”, you […]
          תגובה לפוסט: "האם מחשוב הענן הגיע לסוף ימיו? על Serverless ו-FaaS" מאת "משה"   
למה לא להסתפק ב: [״כתבה מצויינת שמסבירה את העקרון יפה״] ולסיים שם?
          Serverless GraphQL   

@Plinpod wrote:

Hello,

I recently read the posts about running GraphQL with Serverless on AWS Lambda and I got it working well. However I would like to utilize GraphQL subscriptions in my app and don't know how to go about it with this structure. I know that AWS Lambda doesn't support web sockets since the connection is only opened for a small period of time.

Has anyone here used serverless to deploy GraphQL and found a way to also use GraphQL subscriptions maybe with another AWS service?

Looking forward to reading any responses.

Thanks!

Posts: 1

Participants: 1

Read full topic


          Serverless Architecture based on a domain model?   

@Jimi wrote:

Hi There,

I have recently started using serverless, I completed the tutorial on serverless-stack.com and I wanted to see if there was a way could represent the domain model in an application. I've searched for some samples but I can't seem to find anything.

I have an application that I would like to model. How would I reference this in the main serverless.yml file? How would I make them part of the same API gateway?

/users
serverless.yml
/posts
serverless.yml
/comments
serverless.yml

thanks in advance

Posts: 1

Participants: 1

Read full topic


          Serverless with an existing CloudFormation   

@navid wrote:

I have an existing CloudFormation that is managed by a Python library (troposphere) and now I want to start using Serverless for managing my API Gateway and Lambda functions. Do you recommend converting the existing CloudFormation template to Serverless? Is it going to be painful to manage the stack using two different libraries?

Posts: 1

Participants: 1

Read full topic


          Invalidate cache cloudfront   

@ghdna wrote:

I've a website that's hosted on S3 with CloudFront as CDN. Is there a simple way to update changes to S3 and invalidate cache?

Posts: 4

Participants: 2

Read full topic


          How can I verify the CloudFormation changes before deployment?   

@kitsunde wrote:

Serverless just decided to drop all but one DynamoDB table, how can I check what modifications it's planning on making before I run deploy?

As far as I can tell there's no --dryrun on serverless deploy and I can't find an option to output the CloudFormation json.

Posts: 3

Participants: 3

Read full topic


          HTTP POST path variable and request body with Java   

@bhaskyknl wrote:

Hello everyone.

I am implement POST service using aws lambda with Java and serverless.

My requirement is:

I have URL where there is path variable resource (like this example : http://host.com/api/{userid}/create) and my request body is { "account": "serverless","account-id":"123"}

Can you please share me an example in serverless.yml file and what input object i have to use to access body and path variable?

public TestHandler extends requestHandler<Map, Response object) {

}

Will that work?

Please provide me examples

Thanks,
Bhasky

Posts: 1

Participants: 1

Read full topic


          Deploy error: cloudformation:ValidateTemplate   

@lascarayf wrote:

Hello, when I deploy a function I have the following error:

User: arn:aws:iam::xxxxxxx is not authorized to perform: cloudformation:ValidateTemplate

The user has permission to cloudformation:*. Can anyone help me with this issue?

Thanks !

Posts: 4

Participants: 2

Read full topic


          How to set Cookie and Location redirect in response object ? Only either is working   

@Vishesh1 wrote:

I have the folowing code, when i use statusCode 200 it adds cookie but redirect doesnot work. When i use 304 it redirects but cookie is not set. How can i do both ? Is it possible ?

	  const response = {
	statusCode: 200,
	    headers: {
		"Access-Control-Allow-Origin" : "*",
		"Access-Control-Allow-Credentials" : true,
		"Set-Cookie": 'data=dflsdjfhlsd',
		"Location":"http://127.0.0.1:8040/#/dashboard",
	    },
	    body: JSON.stringify({
	      message: data,
	    }),
	  };
	  callback(null, response);

Posts: 1

Participants: 1

Read full topic


          Can't load .so file in AWS   

@aaa wrote:

Hello everyone

I try to upload lambda function using serverless, and call it.
In the function, A so file is loaded, but it didn't work correctly,
The .so file is downloaded from S3, and saved in tmp.

Error message is follow:

/tmp/xxx.so: /tmp/xxx.so: ELF load command past end of
file: java.lang.UnsatisfiedLinkError
java.lang.UnsatisfiedLinkError: /tmp/xxx.so: /tmp/xxx.so:
ELF load command past end of file

I want to know reason of error, and way to remove it.

Best regards,

aaa

Posts: 2

Participants: 2

Read full topic


          Error with initial NPM install of Severless   

@phoxic wrote:

Hello.. I tried installing Serverless using NPM per instructions:
C:\Serverless>npm install -g serverless

and I get:

Error: Cannot find module 'C:\Users\AppData\Roaming\npm\node_modules\serverless\node_modules\tabtab\index.js\src\cli.js

Is anyone else seeing this or is this a problem specific to my config?

Installer seems to think index.js is a directory? I saw bug reports for tabtab that were similar, but didn't look the same.

Thanks

Posts: 4

Participants: 3

Read full topic


          Cannot use multiple $file variable in Resources section of serverless.yml   

@nclow wrote:

This feature request indicates that it should be possible to include multiple files in the Resources section. I want to do this to better manage a large file with hundreds of resources in it.

However, doing this

resources:
  Resources:
    - ${{file(1.yaml)}}
    - ${{file(2.yaml)}}

Results in a template with the Resources key set to a list, which looks like

"Resources": [
    {
      "Resource1": {
        "Type": "AWS::Logs::SubscriptionFilter",
         ...
          
      }
    },
    ...

Which fails when the template is uploaded to CloudFormation:

  Error --------------------------------------------------
 
  The CloudFormation template is invalid: Template format error: Any Resources member must be an object.

What is the proper way to use this feature? I've tried this dozens of different ways in multiple versions of serverless and using $file in the Resources section always results in the variable not being interpreted, interpreted wrongly as in this bug report, or producing invalid output in the CF template.

Posts: 1

Participants: 1

Read full topic


          Unable to reference a variable in environment variable   

@yonathan06 wrote:

part of my serverless.yml

custom:
  tables:
    userSignup: userSignup-table

functions:
  signup:
    handler: handler.signup
    name: ${self:custom.prefix}-signup
    environment:
      tables:
        userSignup: ${self:custom.tables.userSignup}

getting this error while deploying

  Serverless Error ---------------------------------------

  An error occurred while provisioning your stack: SignupLambdaFunction - Value of property Variables must be an object with String (or simple type) properties.

  Your Environment Information -----------------------------
     OS:                     win32
     Node Version:           6.10.0
     Serverless Version:     1.16.0

anyone knows whats wrong in here?

Posts: 2

Participants: 2

Read full topic


          Dynamic ARN to Cognito authorizer   

@justabuzz wrote:

When trying to sls package the below (for brevity I included only the relevant bits) then I'm getting an error (below is full stacktrace). Looking at the source it seems the code expects the arn value would be a string. Any solution for this? Thanks!

functions:
  apighandler:
    handler: apighandler.handler
    events:
      - http:
          path: lmi
          method: post
          cors: true
          authorizer:
            name: authorizer
            arn:
              Fn::GetAtt:
                - CognitoUserPool
                - Arn
            claims:
              - email

resources:
  Resources:
    CognitoUserPool:
      Type: "AWS::Cognito::UserPool"
      Properties:
        UserPoolName: UserPool
        AdminCreateUserConfig:
          AllowAdminCreateUserOnly: true
        AutoVerifiedAttributes:
          - email

Error:

TypeError: functionArn.split is not a function
    at Object.extractAuthorizerNameFromArn (/usr/lib/node_modules/serverless/lib/plugins/aws/lib/naming.js:126:34)
    at AwsCompileApigEvents.getAuthorizer (/usr/lib/node_modules/serverless/lib/plugins/aws/package/compile/events/apiGateway/lib/validate.js:218:37)
    at _.forEach (/usr/lib/node_modules/serverless/lib/plugins/aws/package/compile/events/apiGateway/lib/validate.js:50:36)
    at arrayEach (/usr/lib/node_modules/serverless/node_modules/lodash/lodash.js:537:11)
    at Function.forEach (/usr/lib/node_modules/serverless/node_modules/lodash/lodash.js:9359:14)
    at _.forEach (/usr/lib/node_modules/serverless/lib/plugins/aws/package/compile/events/apiGateway/lib/validate.js:42:9)
    at /usr/lib/node_modules/serverless/node_modules/lodash/lodash.js:4944:15
    at baseForOwn (/usr/lib/node_modules/serverless/node_modules/lodash/lodash.js:3001:24)
    at /usr/lib/node_modules/serverless/node_modules/lodash/lodash.js:4913:18
    at Function.forEach (/usr/lib/node_modules/serverless/node_modules/lodash/lodash.js:9359:14)
    at AwsCompileApigEvents.validate (/usr/lib/node_modules/serverless/lib/plugins/aws/package/compile/events/apiGateway/lib/validate.js:41:7)
    at Object.package:compileEvents [as hook] (/usr/lib/node_modules/serverless/lib/plugins/aws/package/compile/events/apiGateway/index.js:42:31)
    at BbPromise.reduce (/usr/lib/node_modules/serverless/lib/classes/PluginManager.js:254:55)
From previous event:
    at PluginManager.invoke (/usr/lib/node_modules/serverless/lib/classes/PluginManager.js:254:22)
    at PluginManager.run (/usr/lib/node_modules/serverless/lib/classes/PluginManager.js:273:17)
    at variables.populateService.then (/usr/lib/node_modules/serverless/lib/Serverless.js:105:33)
    at runCallback (timers.js:672:20)
    at tryOnImmediate (timers.js:645:5)
    at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
    at Serverless.run (/usr/lib/node_modules/serverless/lib/Serverless.js:92:74)
    at serverless.init.then (/usr/lib/node_modules/serverless/bin/serverless:30:50)

Posts: 1

Participants: 1

Read full topic


          Parse & dump all config   

@danfrost wrote:

Hi - is there a way to parse & dump all the serverless config so you can see the "compiled" version, with variables etc replaced?

I'm thinking this is useful for debugging and a nice step before pushing so I can see if all my config is good.

Cheers,
Dan

Posts: 1

Participants: 1

Read full topic


          451 Research: Cloud Price Index Finds Serverless Usually Cheaper Than Virtual Machines And Containers   
In the industryamp;rsquo;s first analysis of serverless cloud pricing, 451 Research has found that, for the majority of new applications, serverless offers a lower cost of ownership (TCO) than virtual machines (VMs) and containers.
          The big four cloud firms are set for price war over serverless computing, suggests 451 Research   
Cloud industry price wars could enter new phase, as demand for serverless computing services grows, suggests 451 Research
          Links for 2017-06-19   
How does language, memory and package size affect cold starts of AWS Lambda? some datapoints — java and C# have a hard time (tags: java cold-start lambda serverless aws)
          Serverless experiments with Google Cloud Platform, Part 2   
Sending and receiving emails in cloud Functions.
          Serverless GraphQL   

Hello,

I recently read the posts about running GraphQL with Serverless on AWS Lambda and I got it working well. However I would like to utilize GraphQL subscriptions in my app and don't know how to go about it with this structure. I know that AWS Lambda doesn't support web sockets since the connection is only opened for a small period of time.

Has anyone here used serverless to deploy GraphQL and found a way to also use GraphQL subscriptions maybe with another AWS service?

Looking forward to reading any responses.

Thanks!


          Most Popular #DevOps Talk | @DevOpsSummit #DX #CloudNative #Serverless    
DevOps at Cloud Expo, taking place October 31 - November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 21st Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world. The widespread success of cloud computing is driving the DevOps revolution in enterprise IT. Now as never before, development teams must communicate and collaborate in a dynamic, 24/7/365 environment. There is no time to wait for long development cycles that produce software that is obsolete at launch. DevOps may be disruptive, but it is essential.

read more


          [video] @TwistlockTeam Security Solutions | @CloudExpo #Serverless #DevOps #CloudNative    
"Suddenly a lot of companies started focusing on producing services in the cloud. I like to call it Cloud Native - everything is built for the cloud. The main concept there is to enable developers to work fast," explained Ben Bernstein, CEO & Co-Founder of Twistlock, in this SYS-CON.tv interview at 20th Cloud Expo, held June 6-8, 2017, at the Javits Center in New York City, NY.

read more


          תגובה לפוסט: "האם מחשוב הענן הגיע לסוף ימיו? על Serverless ו-FaaS" מאת "Dr.Cloud"   
בגדול, אם יש קוד אבסטרקטי, למשל עריכת תמונה (Resize, Crop etc.), או פעולה אסינכרונית ללא עידכון UI/חזרה למשתמש הקצה, למשל הרצת טריגר לשליחת Newsletters, שמה, לפי הבנתי, כדי להשתמש בשירות. בכל מקרה, אני לא מאמין שזה יחליף את השימוש בענן אלא ילך איתו יד ביד, בדיוק כמו השימוש בשרתי CDN ל-Cache.
          תגובה לפוסט: "האם מחשוב הענן הגיע לסוף ימיו? על Serverless ו-FaaS" מאת "חסר הבנה"   
"דמיינו שאתם יכולים להעלות את הקוד שלכם לענן אליו אתם מחוברים ובלחיצת כפתור אחת תוכלו להריץ את הקוד הזה בכל אחד מעשרות, מאות, או אלפי יחידות הקצה המחוברות לאותו ענן. בין אם מדובר במכונית, שעון, רחפן או כל דבר אחר שתחלמו עליו" במה זה שונה מ push?
          Microservices with Azure   

Architect enterprise-grade, Microservice-based solutions using Microsoft Azure Service Fabric. About This Book Explore architectural patterns for building modern day Microservice-based systems Learn about Microsoft Service Fabric as a platform to host distributed Microservices Discover multiple options for hosting Microservices on heterogeneous, cross-platform environments Learn to configure Azure Service Fabric clusters for enterprise-grade service deployments Who This Book Is For The book is aimed at IT architects, system administrators, and DevOps engineers who have a basic knowledge of the Microsoft Azure platform and are working on, or are curious about, the concepts of Microservices and Microservice architecture. What You Will Learn Understand the basics of Microservices and how Microsoft Azure fits into the equation Master Azure Service Fabric architecture and services Explore Azure Service Fabric application programming models Comprehensive study of various architecture patterns for building enterprise-grade Microservices Manage and deploy Microservices on Azure Service Fabric An insight into the future of Microservices with containers and serverless computing In Detail Microsoft Azure is rapidly evolving and is widely used as a platform on which you can build Microservices that can be deployed on-premise and on-cloud heterogeneous environments through Microsoft Azure Service Fabric. This book will help you understand the concepts of Microservice application architecture and build highly maintainable and scalable enterprise-grade applications using the various services in Microsoft Azure Service Fabric. We will begin by understanding the intricacies of the Microservices architecture and its advantages over the monolithic architecture and Service Oriented Architecture (SOA) principles. We will present various scenarios where Microservices should be used and walk you through the architectures of Microservice-based applications. Next, you will take an in-depth look at Microsoft Azure Service Fabric, which is the best–in-class platform for building Microservices. You will explore how to develop and deploy sample applications on Microsoft Azure Service Fabric to gain a thorough understanding of it. Building Microservice-based application is complicated. Therefore, we will take you through several design patterns that solve the various challenges associated with realizing the Microservices architecture in enterprise applications. Each pattern will be clearly illustrated with examples that you can keep referring to when designing applications. Finally, you will be introduced to advanced topics such as Serverless computing and DevOps using Service Fabric, to help you undertake your next venture with confidence. Style and approach This book introduces its readers to the concept of Microservices and Microsoft Azure Service Fabric as a distributed platform to host enterprise-grade Microservices. It then addresses common architectural challenges associated with the Microservice architecture, using proven architectural patterns. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Go Cookbook   

Bridge the gap between basic understanding of Go and use of its advanced features About This Book Discover a number of recipes and approaches to develop modern back-end applications Put to use the best practices to combine the recipes for sophisticated parallel tools This book is based on Go 1.8, which is the latest version Who This Book Is For This book is for web developers, programmers, and enterprise developers. Basic knowledge of the Go language is assumed. Experience with back-end application development is not necessary, but may help understand the motivation behind some of the recipes. What You Will Learn Test your application using advanced testing methodologies Develop an awareness of application structures, interface design, and tooling Create strategies for third-party packages, dependencies, and vendoring Get to know tricks on treating data such as collections Handle errors and cleanly pass them along to calling functions Wrap dependencies in interfaces for ease of portability and testing Explore reactive programming design patterns in Go In Detail Go (a.k.a. Golang) is a statically-typed programming language first developed at Google. It is derived from C with additional features such as garbage collection, type safety, dynamic-typing capabilities, additional built-in types, and a large standard library. This book takes off where basic tutorials on the language leave off. You can immediately put into practice some of the more advanced concepts and libraries offered by the language while avoiding some of the common mistakes for new Go developers. The book covers basic type and error handling. It explores applications that interact with users, such as websites, command-line tools, or via the file system. It demonstrates how to handle advanced topics such as parallelism, distributed systems, and performance tuning. Lastly, it finishes with reactive and serverless programming in Go. Style and approach This guide is a handy reference for developers to quickly look up Go development patterns. It is a companion to other resources and a reference that will be useful long after reading it through the first time. Each recipe includes working, simple, and tested code that can be used as a reference or foundation for your own applications. Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com . If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.


          Technical Lead/Architect/Developer   
Do you pick up new technologies and ideas quickly? Do you have a strong understanding of software architecture and can quickly determine if something will work at cloud scale? Do you have experience with micro-services, containers and serverless designs? Do you have an entrepreneurial mindset, constantly challenge the norm and looking for better solutions?

Our client is looking for full stack architect to help prove out ideas and technologies. They are seeking individuals with extensive experience in rapid prototyping and development of innovative solutions. You will be working with the architecture team proving out concepts, while building strong collaborative relationships with our engineering teams. It is expected that you have strong expertice in a handful of programming languages, are very familiar with many database technologies, and have extensive experience with deploying solutions to AWS.

If you are looking for a startup environment with the safety net of a rock solid company, we would love to talk to you.

What You Would Do

* Work closely with Architecture on new concepts and designs.
* Innovate and test new ideas with real code.
* Design and build prototypes to validate solutions for business asks.
* Collaborate with engineering teams as ideas move from prototypes to real products.
* Document and share new knowledge, mentor others.
* Always look for ways to improve and innovate.

Expected Qualifications

* Strong expertice in at least 2 of these languages: C#, Java, PHP, JavaScript/node.
* Some experience with other languages preferred.
* Experience with Aurelia, Angular, React and similar frameworks expected.
* Extensive experience with AWS services required.
* Specific experience with AWS EC2, ECS, Lambda, API Gateway, Aurora, Redshift and EMR desired.
* Strong knowledge of REST, JSON, HTTP standards required.
* Some experience with Jenkins and CI/CD pipelines desired.

Skills / Knowledge

* A-type personality, self-driven and motivated by working on new technologies.
* Analytical, problem solver, logical thinker with attention to detail.
* Comfortable with a fast-paced environment, able to multi-task.
* Pick up new technology and concepts quickly.
* Work independently with minimal supervision.
* Know the difference between perfection and good enough.
* Possess excellent verbal and written communication skills.

Education

Bachelor's degree in Computer Science or related field.
          (USA-WA-Seattle) Software Development Engineer - API Gateway   
Amazon API Gateway is changing the way that companies big and small think about APIs. API Gateway is the front-door of the Serverless revolution, an approach that lets customers turn business logic and application code into scalable, fault-tolerant production systems without requiring every developer to become an expert in distributed systems, deployment technologies, and infrastructure management. API Gateway turns daunting tasks such as traffic management, authentication and authorization, monitoring and API versioning into easily configurable steps. It then helps companies to build their developer eco-systems and turns their data sets and business logic into new revenue streams. The Seattle-based Amazon API Gateway team is growing rapidly and is looking for talented Software Engineers who can help us create the massively scalable and powerful service. If you are excited about cloud computing and architecting highly available and large-scale services used by millions of users, then join us in making the Serverless revolution ubiquitous. 
 You will own and help driving exciting new initiatives on API Gateway - from building new features to improving its performance and latency. Along with this, you will interact with our customers (from mobile developers to large enterprises) to ensure their needs are met; clear, professional communication with other developers and customer representatives is an important part of the job. This customer interaction is a unique opportunity to feel first-hand the impact of your work. What does it take to succeed in this role? Excited (and a little frightened) by the scale at which we work. A roll-up-your-sleeves type. Able to think about business opportunities, operational issues, and architectural diagrams in the course of a single conversation. Intellectually curious and dedicated to turning developers into raving fans. Someone who makes the team room both productive and fun to work in. Excited to learn from others while bringing your own novel capabilities and perspectives. We guarantee that your work in our team will be deeply interesting, ground-breaking and challenging. For more information, visit the Amazon API Gateway page: http://aws.amazon.com/api-gateway Job location is Seattle, WA. Relocation assistance available. Basic Qualifications: + Bachelors Degree in Computer Science or related field + Proficiency in at least one modern programming language such as Java or C++ Preferred qualifications + Computer Science fundamentals in algorithm design, problem solving, and complexity analysis + Experience building complex software systems that have been successfully delivered to customers + Experience building highly-available distributed systems + Excellent communication skills and the ability to work well in a team + Strong customer focus, ownership, urgency and drive AMZR Req ID: 552397 External Company URL: www.amazon.com