Introducing Cloud Functions for Java 11

preview_player
Показать описание
In this video, we showcase the new Cloud Functions for Java 11. Want to learn how to create functions - such as HTTP and Background functions - that you can test and deploy locally? Watch to learn more about Cloud Functions for Java 11 and how you can utilize this tool for your projects.

Product: Cloud Functions; fullname: Ray Tsang, Guillaume Laforge;
Рекомендации по теме
Комментарии
Автор

My favorite language now supported in Cloud Functions...

LearnGoogleCloudwithMahesh
Автор

Thanks :) but how to locally debug, every time need to deploy with SYSO logs and taking 2 mins to upload. Please suggest

AmitSinghIndia
Автор

You missed the part on - How do we run the Background function in local, specially when I am trying to link it with a PubSub topic. How do I do it?

AbhideepChakravarty
Автор

A word of warning. If you plan on building an app that connects to SQL db then you might have to rethink using Cloud Functions. SQL db requires a socket connection which is expensive to create. In traditional server the connections are saved in a pool to be reused but in serverless the pool is destroyed along with the container. Or in case of concurrent requests it might be created multiple times. This can overwhelm your db as it has to destroy and create these connections many, many times. AWS Lambda has a solution in which it created another service called RDS Proxy to maintain the connection spikes. Google does not have it yet (it has something called SQL Proxy but it's not the same thing) So if you insist on doing serverless with SQL, you should go with AWS. RDS Proxy is a paid service so in the end you might be better off using old server.

cetaepsilon