Top 3 pain points for serverless developers

  Рет қаралды 7,810

Google Cloud Tech

Google Cloud Tech

Күн бұрын

Пікірлер: 30
@googlecloudtech
@googlecloudtech 2 жыл бұрын
💯 episodes and counting of Serverless Expeditions and it all thanks to you - our developer community. Thank you! 🔔 Subscribe so you never miss a serverless expedition → goo.gle/ServerlessExpeditions
@mffalcao87s
@mffalcao87s 2 жыл бұрын
So Nice the dynamic and how in the final you bring the convention ideas to explain, really great
@StarlightInsights_com
@StarlightInsights_com Жыл бұрын
Thanks for another great video! Your videoes are amazing for getting a fast and unintimidating understanding of GCP. 🤩 At 3:22 you mentioned that relational databases are good for aggregating data over many records, and then you mentioned MySQL, PostgreSQL, and SQL Server. Those databases are notoriously bad for doing aggregations over many records. A report here and there may be ok, but on a production database, you would avoid mixing CRUD operations and multi-row aggregations in the same database. If multi-row aggregations are essential for your app, consider a column store database instead. GCP offers both BigQuery and Snowflake out of the box.
@TheMomander
@TheMomander Жыл бұрын
Thank you for the kind words, Data Maverick! You bring up a good point about data aggregation. I think it's a matter of degrees. Data aggregation can be done in multiple ways. From slowest to fastest: 1. NoSQL database. 2. SQL database. 3. Analytics database, like BigQuery or Snowflake. In the video we were talking about going from method 1 to 2. You're saying that method 3 is even faster, which I agree with. For some applications, method 2 is good enough. Others require method 3.
@StarlightInsights_com
@StarlightInsights_com Жыл бұрын
@@TheMomander You are 500% right!!! Integrating an analytical database into an app takes considerable effort and upkeep. So 49 out of 50 times, it is better to "just" use the best database for the app and then take the performance hit doing aggregation.
@Babbili
@Babbili 2 жыл бұрын
8:47 exactly whatever on-prem they copy to the cloud, i came to a company they copy paste their on-prem k8s to gke, i'm changing it using cloud build, skaffold, cloud deploy, cloud run for some projects ...
@TheMomander
@TheMomander 2 жыл бұрын
Wow, copy-paste deployments sound pretty risky. I'm glad to hear you're fixing that!
@jeanchindeko5477
@jeanchindeko5477 2 жыл бұрын
Have you covered already how to implement a fully serverless data platform (or lakehouse) on GCP?
@luillyfe
@luillyfe 2 жыл бұрын
I want to watch in an upcoming video, what Serverless option to take when going Serverless? what Serverless options is more suitable for some kind of application?
@TheMomander
@TheMomander 2 жыл бұрын
Excellent suggestion, thank you! I'm adding that to my list.
@davidspiess2047
@davidspiess2047 2 жыл бұрын
I love cloud run, but attaching a redis memory store on basic plan costs at least 50 € / month. Attaching a dedicated volume using Filestore is way to pricy with 200 € / month. Why not provide smaller and cheaper possibilities to attach volumes. Especially smaller apps would benefit a lot from cheap persistent volumes.
@GoogleDevelopers
@GoogleDevelopers 2 жыл бұрын
Yes, there's a bit of a cost for using Cloud Memorystore for Redis. Awhile back, I produced content to help App Engine users migrate from its Memcache service to Memorystore/Redis where I give hints on minimizing costs. Search for "Migrating from App Engine Memcache to Cloud Memorystore" to find the post, video, and tutorial. As far as Cloud Filestore goes, do you absolutely need a live NAS/NFS-mounted filesystem attached to it? What is your use case? Another alternative to your architecture is to configure a vanilla Compute Engine VM running Redis with an attached persistent disk (much cheaper than Firestore and mountable on other VMs) and firewall. Yes, that's not a "serverless" solution. The team is looking into some kind of persistent volume for serverless platforms, but that's just an idea for now, hence why I asked about your use case.
@vineethp8168
@vineethp8168 2 жыл бұрын
I find it difficult to maintain a consistent redis connection with cloud run. Socket disconnects all the time. We tried heart beats as well. It's failing on cold start and also when we have minimum instances. So we can build a consistent application on cloud run. Is there a recipe on how the redis connection should be handled?
@TheMomander
@TheMomander 2 жыл бұрын
That's interesting; I haven't heard of this problem before. Is the Redis instance in Google Cloud or elsewhere? Do you use "Memorystore for Redis" or have you installed Redis on a virtual machine yourself?
@vineethp8168
@vineethp8168 2 жыл бұрын
@@TheMomander Thanks for responding. We are using "memory store for redis" solution with Cloud run. Cloud run and Memory Store for Redis are connected to the same VPC. They connect and operate without any issues. Like I said, even heart beats are okay. But at a certain time for some strange reason the connection is lost. So all subsequent commands fail. We often joke that the issue happens when we are planning to do some demo to a client. There is no particular pattern on when it happens. Once a week or twice a week. The issue was more frequent when we had minimum instances running than when the cloud run scales to zero. I haven't found much on this issue online so was wondering if it had something to do with some configuration on VPC or redis client. We are using dart server at the moment but is planning to move to express.js in the hope that a more frequently maintained npm redis client library would give us better performance.
@TheMomander
@TheMomander 2 жыл бұрын
@@vineethp8168 Thank you for writing this up. I agree that it would be a good idea to switch to a more commonly used runtime. Please add another comment when you've switched and let me know if it helped or not!
@vineethp8168
@vineethp8168 2 жыл бұрын
@@TheMomander we started using node JS package - redis 4.1.0 with MemoryStore for Redis. To test against what we already had, we had two instances of Memorystore running - one with the older dart Redis client and the other with the new Node J's redis client. Both of them have been running without the issue for over a month now since I messaged you the last time and then failed exactly the same time today. Which makes me wonder if it has something to do with some time bound process. How do other GCP users handle this scenario?
@TheMomander
@TheMomander Жыл бұрын
@@vineethp8168 Thank you for the update. I've asked around and I have not heard anything about this. Sorry I couldn't be of more help.
@MrArsalan1988
@MrArsalan1988 2 жыл бұрын
sir plz explain what is dry run ?
@TheMomander
@TheMomander 2 жыл бұрын
It can mean many things. In what context have you heard "dry run" mentioned? I don't believe we used this term it in the video.
@bigdlamz
@bigdlamz 2 жыл бұрын
Cloud Functions for Firebase need support for Python, Java & Go at minimum. Stop forcing Typescript /Javascript on the backend
@TheMomander
@TheMomander 2 жыл бұрын
If you want to write functions in Python, Java, Go, C#, Ruby, or PHP, try out the regular Cloud Functions (without Firebase). You won't be able to use the "firebase deploy" command, but you will have more language choice.
Searching for extraterrestrials with Google Cloud
11:06
Google Cloud Tech
Рет қаралды 3 М.
Safe serverless deployments with Cloud Run
17:14
Google Cloud Tech
Рет қаралды 3,6 М.
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 18 МЛН
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 39 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 28 МЛН
Designing a serverless finance system on Google Cloud
14:30
Google Cloud Tech
Рет қаралды 14 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 633 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 322 М.
Deploy the same app to App Engine, Cloud Functions, and Cloud Run?
15:46
Google Cloud Tech
Рет қаралды 11 М.
DHH discusses SQLite (and Stoicism)
54:00
Aaron Francis
Рет қаралды 99 М.
Picking the right serverless platform (Part 1)
14:02
Google Cloud Tech
Рет қаралды 16 М.
The only Cloud services you actually need to know
17:17
NeetCodeIO
Рет қаралды 194 М.
Top 6 Most Popular API Architecture Styles
4:21
ByteByteGo
Рет қаралды 958 М.
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 18 МЛН