Hi Ahmad, thanks to your instructions I was able to set up a simple Azure Function, which sends some JSON to MongoDB Atlas. The function uses Mongoose - just like in your example above.
It works perfectly fine, BUT I have massive cold start times of up to 70 seconds. Did you encounter similar issues? Tomorrow I try to zip the function and deploy it (as described here github.com/Azure/app-service-annou...). Hope this decreases cold start.
VP of DevRel RapidAPI ❯ Award-winning Web Developer NodeCLI.com ❯ Google Dev Expert Web tech ❯ 2x GitHub Stars Award ❯ WordPress Core Dev ❯ TEDx Speaker ❯ "awesome example for devs" — Satya Nadella
Location
San Francisco Bay Area
Education
EE-CS Engineer turned Software Developer
Work
VP of DevRel (DX Eng., Content & Community) RapidAPI ❯ Google Dev Expert ❯ GitHub Star ❯ NodeCLI.com
Hi Ahmad, the zipping helped! Cold start time is down to 3 seconds max now. When deploying from VS Code the add-in is automatically creating the package, so no issues with long cold starts. Should have used it right from the beginning.
Thanks for this tutorial again! It was very helpful!
VP of DevRel RapidAPI ❯ Award-winning Web Developer NodeCLI.com ❯ Google Dev Expert Web tech ❯ 2x GitHub Stars Award ❯ WordPress Core Dev ❯ TEDx Speaker ❯ "awesome example for devs" — Satya Nadella
Location
San Francisco Bay Area
Education
EE-CS Engineer turned Software Developer
Work
VP of DevRel (DX Eng., Content & Community) RapidAPI ❯ Google Dev Expert ❯ GitHub Star ❯ NodeCLI.com
Hi Ahmad, thanks to your instructions I was able to set up a simple Azure Function, which sends some JSON to MongoDB Atlas. The function uses Mongoose - just like in your example above.
It works perfectly fine, BUT I have massive cold start times of up to 70 seconds. Did you encounter similar issues? Tomorrow I try to zip the function and deploy it (as described here github.com/Azure/app-service-annou...). Hope this decreases cold start.
70 seconds is odd. Must be some issue. Keep digging. Anything beyond 5 sec is something wrong.
Also, glad you liked it. Just release my VSCode.pro course been thinking about a course on serverless after that.
Peace! ✌️
Hi Ahmad, the zipping helped! Cold start time is down to 3 seconds max now. When deploying from VS Code the add-in is automatically creating the package, so no issues with long cold starts. Should have used it right from the beginning.
Thanks for this tutorial again! It was very helpful!
Awesome! 💯
Been thinking on making a course on it.