user1662812
user1662812

Reputation: 2601

Does Azure storage CreateIfNotExist() result in extra round-trip?

Most of the examples on working with Azure Storage have .CreateIfNotExist(); inside the program flow. So if I have a method that puts a blob, but before executing the put it executes .CreateIfNotExist();, does this mean that there is an extra round-trip being made to the storage?

Upvotes: 6

Views: 575

Answers (1)

Sandrino Di Mattia
Sandrino Di Mattia

Reputation: 24870

Yes. It would be better to create the container when you role starts (WebRole.cs/WorkerRole.cs) or when your application starts (Global.asax.cs)

Upvotes: 9

Related Questions