☕ If you liked this video and want to support my channel, please consider buying me a coffee. Your contribution helps me create more content like this: 👉 Buy Me a Coffee: www.buymeacoffee.com/andrey.fadeev 👉 Ko-fi: ko-fi.com/andreyfadeev Please also subscribe to my other resources: 👉 Substack: blog.andreyfadeev.com 👉 Telegram: t.me/andreyfadeevchannel I'm truly grateful for your support, and thank you for watching! 🙏
Hi, tbh, I've not done that yet, but I will soon. I was planning to use HTTP API of Mailgun (don't see a reason why that won't work), but I also discovered that you can use MailChannels from Cloudflare workers (so maybe it's even better option). Yeah, nodemailer won't work due to nodejs deps, as I understand.
@@andrey.fadeev Ah so youre expecting to potentially send emails via a 3rd party http client. I saw MailChannels, but still havent figured out how to set that tup. Really curious to see how you do it :)
@@andredealbuquerque105 I've seen a blog post from Cloudflare: Send email using Workers with MailChannels, there is a code snippet, plus MailChannels requires domain lock down Will try that soon and see how it goes :)
i tried to build this with hono but its not working after deploy. so the issue is when i try to make request form browser it is showing rate limited but when using postman then rate limit not working why so ?
@@andrey.fadeev using ip address. also i tried with without hono. just having same issue it got rate limited in browser but when using postman for request. no rate limit hits.
@@andrey.fadeevyes, I would like to test the rate limiter because it is 'activated' in different conditions. Their docs is very poor on that part. Perhaps you can share something about your experience with that. Thanks for the content and for taking the question.
@@ffckode there is a tool wrangler that's usually used to create local test environment as well (and it's possible to have test version of D1 db for example), I would expect eventually rate limiter could be configured in test as well, but as it's still in beta I'm not sure it's possible now probably the way to go is to use good old stubs/mocks in the test and wrap that rate limiter logic
☕ If you liked this video and want to support my channel, please consider buying me a coffee. Your contribution helps me create more content like this:
👉 Buy Me a Coffee: www.buymeacoffee.com/andrey.fadeev
👉 Ko-fi: ko-fi.com/andreyfadeev
Please also subscribe to my other resources:
👉 Substack: blog.andreyfadeev.com
👉 Telegram: t.me/andreyfadeevchannel
I'm truly grateful for your support, and thank you for watching! 🙏
Exactly what I needed, thank you!
I'm really enjoying all of your Cloudflare videos.
Glad to hear it!
how wre you sending emails with workers? nodemailer didnt seem to work?
great video!
Hi, tbh, I've not done that yet, but I will soon. I was planning to use HTTP API of Mailgun (don't see a reason why that won't work), but I also discovered that you can use MailChannels from Cloudflare workers (so maybe it's even better option).
Yeah, nodemailer won't work due to nodejs deps, as I understand.
@@andrey.fadeev Ah so youre expecting to potentially send emails via a 3rd party http client. I saw MailChannels, but still havent figured out how to set that tup. Really curious to see how you do it :)
@@andredealbuquerque105 I've seen a blog post from Cloudflare: Send email using Workers with MailChannels, there is a code snippet, plus MailChannels requires domain lock down
Will try that soon and see how it goes :)
i tried to build this with hono but its not working after deploy.
so the issue is when i try to make request form browser it is showing rate limited but when using postman then rate limit not working why so ?
what are you using as key? maybe log that out and see if its same?
@@andrey.fadeev using ip address. also i tried with without hono. just having same issue it got rate limited in browser but when using postman for request. no rate limit hits.
How do you create Integration Tests for Workers that have Rate Limiters?
It’s possible to disable rate limiter in test setup or you want to test rate limiting itself?
@@andrey.fadeevyes, I would like to test the rate limiter because it is 'activated' in different conditions. Their docs is very poor on that part. Perhaps you can share something about your experience with that. Thanks for the content and for taking the question.
@@ffckode there is a tool wrangler that's usually used to create local test environment as well (and it's possible to have test version of D1 db for example), I would expect eventually rate limiter could be configured in test as well, but as it's still in beta I'm not sure it's possible now
probably the way to go is to use good old stubs/mocks in the test and wrap that rate limiter logic
do these requests that get rejected with rate limiting still count towards your worker invocations?
I think so yeah, it was beta at that point, maybe it will change