This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Serverless Programming Cookbook: Functional and serverless  RSS feed

 
Ranch Hand
Posts: 80
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Heartin,

Generally people get confused that you need to have functional programs to run in server-less architecture. Also there are few scenarios where server-less may not be apt.
What's your view on these two topics ?

Does you book cover about how to think about designing applications to be server-less ?
 
Ranch Hand
Posts: 1323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also want to ask the author that does the book cover FaaS & BaaS? what are some frameworks we can use with Mesos Marathon, K8 to achieve those, I know AWS has Lambda, what about Azure and Google Cloud?
 
Author
Posts: 18
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

sourabh girdhar wrote:Hi Heartin,

Generally people get confused that you need to have functional programs to run in server-less architecture. Also there are few scenarios where server-less may not be apt.
What's your view on these two topics ?

Does you book cover about how to think about designing applications to be server-less ?



Let us first discuss your question on the usage of functional programs. There was a general trend of considering serverless as only Function as a Service (FaaS). I would like to consider serverless architecture as an architecture where you do not have to worry about servers. It may involve writing code (functions), developing a backend, developing APIs, deploying your Single Page Applications (SPA), managing users and more. Technically your program need not follow pure functional programming style. You can write any code that will be compiled by the runtime you choose. However, a good understanding of the functional programming practices like avoiding state-change and mutable data, can help you write effective functions. You can create serverless applications without writing any code if your cloud provider give you enough abstractions.

For your question on when not to use Serverless, I want to share my opinion that serverless is not always a silver bullet for all use cases. Also, keep in mind that, in many cases serverless applications may have a tight vendor dependency. This is more true if you are using more serverless functionality from your cloud provider than just code like backend, APIs, managing users etc. So if you do not like vendor dependency don't go that deep into serverless. Also, serverless is generally preferred for applications with short-running requests with more idle times. If you have an application with long running services with no idle time, serverless might not be a good fit in most cases. That said, if you are ok with vendor dependency there might be workarounds in the form of vendor specific patterns / practices / services.

Regarding your question on whether the book will make you think serverless, upto some extend it does as it will show you how not to worry about managing any servers (or software) while building various component of an end to end application. That said, please note that this is a Cookbook and contains recipes for most common serverless use cases. Like any recipe based book, this book focusses on the "how" part more and less on the "what" part. There is however enough supporting theory for each recipe. Book is intended for people who want to get solutions for their problems or for people who like to get their hands dirty first and then learn the related theory.
 
Heartin Kanikathottu
Author
Posts: 18
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Billy Tsai wrote:I also want to ask the author that does the book cover FaaS & BaaS? what are some frameworks we can use with Mesos Marathon, K8 to achieve those, I know AWS has Lambda, what about Azure and Google Cloud?



Regarding what the book will cover, first 5 chapters will cover all AWS services required to build a complete web application with a SPA front end, including registering domains and managing DNS. This includes AWS Lambda which can be considered FaaS and DynamoDB which can be considered a fully managed backend, Cognito for managing users, S3, Route 53, CloudFront etc. Second half of the book cover various other services that can complement the core services such as messaging, notifications, machine learning, natural language processing, monitoring etc. Regarding your question on Mesos Marathon, K8, each cloud provider will have their own preferences. For example, with AWS you might want to look at something like AWS Fargate for managing docker containers. Regarding your question on Azure and Google Cloud, the last chapter focuses on serverless services in other clouds such as Azure, Google Cloud and IBM cloud. It has hands-on recipes for FaaS equivalents to Lambda and lists down services that correspond to various other AWS services that were discussed in other chapters. Please feel free to ask if you need more clarity on anything I described.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Welcome to The Ranch!

Are Serverless technologies considered to be production ready by enterprise companies?
I see many challenges such as testing serverless apps, security of serverless apps, sharing common code across functions inside apps etc that seems to not be fully addressed yet by the vendors.

What is your perspective on these?

Thank you,
Lucian R.
 
Heartin Kanikathottu
Author
Posts: 18
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Lucian Revnic wrote:Hello,

Welcome to The Ranch!

Are Serverless technologies considered to be production ready by enterprise companies?
I see many challenges such as testing serverless apps, security of serverless apps, sharing common code across functions inside apps etc that seems to not be fully addressed yet by the vendors.

What is your perspective on these?

Thank you,
Lucian R.



I believe so... As mentioned in another post, Serverless services are mostly vendor dependent. Not all vendors may be on the same level with respect to serverless capabilities. I work extensively on AWS platform and can provide some examples. I also know many companies that use AWS services such as AWS Lambda, Amazon DynamoDB, Amazon S3 etc. in production applications extensively. AWS has recently introduced a feature called Lambda Layers, which should solve your code sharing concern to some level. You may also refer to Amazon SAM Local for local testing of your serverless applications. AWS also has networking and security features like VPCs that you can use with your serverless apps. Other providers will also have similar services and functionalities. Let me know if I answered your question correctly.
 
Villains always have antidotes. They're funny that way. Here's an antidote disquised as a tiny ad:
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!