Oubound Traffic – AWS vs Azure

To receive inbound traffic, you need a public IP – a no-brainer. The concept of public IP exists in both Azure and AWS. An Azure static public IP is AWS’ elastic IP – a public IP that does not change.

Outbound traffic concept is slightly different and is interesting to understand the concept/terminology differences.
Continue reading

Is Azure Cosmos DB Really Expensive?

UPDATE: This post is almost two years old. Some of the things I mentioned in this post might no longer be true. Cloud is very dynamic and things keep changing. So, please do visit Azure’s official documentation to understand the current state.

When you mention Azure Cosmos DB in any architecture/solutioning discussion, a likely question you get is “Isn’t Azure Cosmos DB expensive?”. Like any other thing in this world, the right but not so useful answer is that it depends. First of all, let us understand how Cosmos DB is priced. Cosmos DB is not priced based on the usage. Of course, Cosmos DB is more than a simple NoSQL database but like other NoSQL databases, the price is based on what you reserve. So, the analogy is renting a car rather than hailing a cab – you pay regardless of you used the rented car or not. So, what you reserve with Cosmos is the capacity – what Microsoft calls Request Units (RU) per second. You pay for the RU as well as the space (GB).
Continue reading

Sending Docker Container Logs to Azure Application Insights Using GELF Driver

Docker has a default logging driver, which each container uses. However, you can configure the Docker daemon, or for that matter a Docker container to use a different logging driver. One such driver is Graylog Extended Format logging driver. The Graylog Extended Log Format (GELF) is understood by a number of tools such as Graylog, Logstash, Fluentd, etc. But you can write your own GELF server, which is basically an UDP server. Once you get the GELF message in the UDP server, you can send the message to where you want and for this post, I use Azure Application Insights. Of course, you can create your own Docker logging driver too but I use the GELF driver because it is less work to do! I do not know what the legal/license implications are, in terms of using the GELF driver With Azure Application Insights but the point of this post is to illustrate what is possible.
Continue reading