Navigate / search

Azure Messaging – stats

From time to time I am trying to figure out the size of Azure cloud. It is not so easy to acquire such data. Because of that I like to go sometimes to presentation that is conducted by somebody from Microsoft. In most cases such presentation contains rather marketing content than practical one. But quite often you can see interesting data. In September during Progressive .NET 2017 I got luck. In one of presentation some statistic regarding Azure Messaging has been revealed.

The first thing that came to my mind was reflection that on the one hand this solution works very effective and faultlessly. On the other one still statistically on every second 13500 requests are not handled correctly.

Caching in Azure Function – how you can use Redis

I believe that you should know that Microsoft has prepared some set of components that can be used for integration purposes. You are able to consume the following services in our function: Azure Storage, Azure Event Hubs, Azure Service Bus, Azure Mobile Apps, Azure Cosmos DB, Azure Notification Hubs, Twilio, SendGrid. On the one hand this list is not so big. On the other one you can address with those services a lot of typical scenarios. But sometimes you need to do something more.

Today I would like to share with how easily you can use Redis cache in Azure Function. You should start thinking what for we need to do that. Probably you heard that Azure Functions should be stateless, atomic, small, fast, … But sometimes you need to do something that violate those rules. Read more

Serverless Azure – Environment preparation

Progressive .NET 2017 conference is almost there. During the conference I will be conducting workshop regarding Serverless Azure.

You should prepare your computers to be able to gain as much knowledge as it is possible from workshop.

Please install or organise the following elements:

Unfortunately, without those tools it will be hard for you to take part in this workshop.

Mocking API with Azure Functions

The biggest advantage of Azure Functions is reducing time-to-market of our application. We can also use them to make prototyping more effective. From some time you are able to define mock of our function in Azure Portal. Function defined as mock will respond on request according to its configuration.

I believe that this solution has a great potential. It can be very useful in all sort of application’s prototyping activities. You just need to define our end point and its response. And that is all. You can start using it in you prototype. So you define correct connections in your application from early begin. Then you will need only to change mock definition with correct implementation of your function.

There is also other benefit. You can optimize work between people in your team. I think that everybody at least once has taken part in situation when two groups – one responsible for front-end and second one for back-end – defined common interfaces. And finally both parts of this solution couldn’t talk to each other in the end. Mocks allow us to define well described interfaces by providing working end-point. With that approach both groups would have materialized version of their contract and they can use it.

Unfortunately described feature is still not so well known and popular because it has not been introduced to Azure Portal as feature that can be configured easily by user from UI. You will need to modify manually configuration files. Read more

Azure Functions – Lessons learned

Nowadays all topics related to Cloud and Serverless terms have become very popular. One of such elements are Azure Functions. Microsoft defines it as:

Azure Functions is a solution for easily running small pieces of code, or “functions,” in the cloud. You can write just the code you need for the problem at hand, without worrying about a whole application or the infrastructure to run it. Functions can make development even more productive, and you can use your development language of choice, such as C#, F#, Node.js, Python or PHP. Pay only for the time your code runs and trust Azure to scale as needed. Azure Functions lets you develop serverless applications on Microsoft Azure.

And really I could write a lot about comfort of it usage, easiness of implementation and other features that are great in this solution. Azure Functions works perfect when you do not need to have huge backend. I tested this scenario many times and I was always satisfied.

Of course, at the beginning I made some mistakes and I would like to write about two most important ones. Read more