Build with an Azure free account. Get USD200 credit for 30 days and 12 months of free services.

Start free today

Go Serverless with Azure Functions and C#

Sign in to queue

The Discussion

  • User profile image
    nmarcel

    I would like to know how the functions are loaded and what MS is doing to minimize cold start time. Considering that functions are no more than assemblies (most in the range of MBs if not KBs), all sharing a few framework and libraries (.NET, Json and libs for interop with the bindings), I think that they should be keep in a sort of in-memory storage (or at least SSDs), in order to avoid those 10 secs pause of the cold start.

  • User profile image
    nolisj

    @nmarcel: based on your experience, do those cold start happen every time you access the function or only on the first call? 

  • User profile image
    Anthony Miller

    The sample Todo application is the code available on github?

    As I wanting to get started combining both Azure Functions and CosmosDb together for an API endpoint.

  • User profile image
    VirtualVoid

    You said that your function was working allright after the null-check fix. But it seems not to. Because the exception was thrown...

     

    if (string.IsNullOrEmpty(todo?.title)) // better idea

  • User profile image
    andrewball

    Yes. Please give a reference to your todo app source. Complete local azure function project resources are relatively scarce and we need rapid prototyping. Thanks.

  • User profile image
    anthonychu

    @andrewball:

    Here's the current location of the source: https://github.com/anthonychu/todo-functions

    We're working to move it to a more permanent location.

    Cecil and I will also be publishing a series of blog posts in the coming weeks that will go into details on the different concepts he demonstrated, including: unit testing, continuous delivery with Visual Studio Team Services, and monitoring with Application Insights.

    We'll try to post updates here as these posts and other content appear.

    Thanks for watching! Feel free to contact us here or on Twitter if you have questions in the meantime.

  • User profile image
    anthonychu

    @Anthony Miller: The app is currently located here: https://github.com/anthonychu/todo-functions

    It's currently using Table Storage, however. Although it shouldn't be a lot of work to change it to use Cosmos DB.

  • User profile image
    cecilphillip

    @VirtualVoid:  That issue was a typo on my part. The code in the repo should work fine. Let us know if you have any issues with it. Better yet, send us a pull request :)  

Add Your 2 Cents