Hi Christian, I found your channel today. This video is really interesting. We also played around with Digital Ocean a couple of years ago. But serverless functions seem to me pretty useful. So thank you very much.
To solve the video delete edge case, why don't you just store the last few video IDs in the latest video text file, and then check if the latest video from the TH-cam API is in that list of IDs. If the video isn't then you do the discord post, and also add it to the front of the list of video IDs. The only issue with this approach is it requires some separate logic on first execution that would have to get the list of the latest few video IDs.
You've mentioned that its bad practice to write secrets and tokens in plaintext in your code. However, in the example, we are putting plaintext environment variables in the project.yaml file. If you were using this in production, what solutions would you use to obfuscate the environment variables without committing them to the source code?
Good point! And yeah you’re right, in the video I had no time to show it. But usually I’m using the environment feature of 1Password for local development. Or when you deploy such a project in a CI CD pipeline it would be good to use GitHub Secrets. Btw… great idea for a future video xD
I’ve been trying to write a discord music bot in Python for 3 weeks now, last step now is to Get the bot to play the music, im using lavalink as backend server for music prosessing. My head hurts
Very nice Video. Very sad that this exactly is the way of doing it for YT, but it's great for such examples with Storage Communications. I can recommened you to do the same stuff with the Twitch API aswell.. You can't make a Video out of it tho, because it's too simple, but from there you can see how a modern Service API should works. With Google's pubsubhubbub you can simulate the same WebHook Solution for the YT Api aswell, but the subscribtion isn't infinity. The Twitch API Subscription is infinite while the status code is 200.
Very awesome video, Christian!
Hi Christian, I found your channel today. This video is really interesting. We also played around with Digital Ocean a couple of years ago. But serverless functions seem to me pretty useful. So thank you very much.
You’re welcome! :)
Thank you! Very helpful :)
Glad it was helpful!
Thank you for such a educational video!
even more videos like this one is very much appreciated 😊
Thank you so much :)
This is REALLY interesting!
To solve the video delete edge case, why don't you just store the last few video IDs in the latest video text file, and then check if the latest video from the TH-cam API is in that list of IDs. If the video isn't then you do the discord post, and also add it to the front of the list of video IDs. The only issue with this approach is it requires some separate logic on first execution that would have to get the list of the latest few video IDs.
Which is better..
Truenas or Proxmox.. I have a bare metal server and dont know what to do.. confused with the os.. need guidance
Watch my last video about the best Home Server Os :)
@@christianlempa
Hi.. this is not for my home os.. its for my application hosting and got in contabo.. not for home.. sorry for the confussion
this is nice, Ey Chris what tool are you using for the diagrams?
It's Excalidraw
In cases where an old video my come up as a new one in discord, store the last n ids in the file and compare new I’d against n ids from the file
Did you reach out to support? What did they tell you?
Great video
You've mentioned that its bad practice to write secrets and tokens in plaintext in your code. However, in the example, we are putting plaintext environment variables in the project.yaml file.
If you were using this in production, what solutions would you use to obfuscate the environment variables without committing them to the source code?
I think techno tim did a video on this, "Encrypt Your Sensitive Information Before Storing It - Encrypting with Mozilla SOPS and AGE"
Good point! And yeah you’re right, in the video I had no time to show it. But usually I’m using the environment feature of 1Password for local development. Or when you deploy such a project in a CI CD pipeline it would be good to use GitHub Secrets. Btw… great idea for a future video xD
Nice tutorial... I may try ChatGPT to generate the code as well... Theme for the next video ? 🤩
I’ve been trying to write a discord music bot in Python for 3 weeks now, last step now is to Get the bot to play the music, im using lavalink as backend server for music prosessing. My head hurts
Now you have to self host a serverless platform on Kuberntes yourself with OpenFaaS :P
"self host a serverless platform" aka hosting a server. I love these meme terms.
@@ShadowManceri yeah pretty stupid naming...
Using copilot... welcome to the time of stealing others programmers code...they call it progressive. Haha
You will own nothing, and be happy.
Very nice Video. Very sad that this exactly is the way of doing it for YT, but it's great for such examples with Storage Communications. I can recommened you to do the same stuff with the Twitch API aswell.. You can't make a Video out of it tho, because it's too simple, but from there you can see how a modern Service API should works.
With Google's pubsubhubbub you can simulate the same WebHook Solution for the YT Api aswell, but the subscribtion isn't infinity.
The Twitch API Subscription is infinite while the status code is 200.