Microsoft azure to host website?

6

I have been asked a question, I have a domain and an accommodation requested from a normal company. I've heard of Microsoft Azure that works through cloud . Could you please explain to me how this works for a website?

It allows to be exactly the same site in php and the databases all online as in any other accommodation. And this service makes website navigation faster and of course there is some economic advantage?

And if you change, is it possible to use a registered domain in another company? Thanks for the help, I apologize for the rain of questions but I'm very curious about this system.

    
asked by anonymous 29.05.2015 / 22:15

2 answers

3

Azure has some options for hosting websites. The most common are the following:

  • Virtual machines : the IaaS (Infrastructure as a Service) option - you basically "lease" a computer running on the cloud, and are responsible for installing everything that is to run your website. Your computer may be running Windows (multiple versions) or Linux (multiple versions). You have full control over the machine, including being responsible for making the necessary updates.
  • Websites : PaaS ( Platform as a Service ) option) - you upload the files that make up your website, which will run on an Azure-managed machine. Patches and other updates are automatically applied, and you just have to worry about the website itself. Several languages are supported, including PHP (take a look at in this tutorial: build the website or in this another tutorial - more complete, using PHP and MySQL for more information).

The above two options support custom domains, even if they are registered with other companies (a while ago I had a domain registered to GoDaddy.com that pointed to an Azure website; I do not remember how it was setup but it was not much complicated).

Regarding the database, in the first case (virtual machine) you can install the DB on the machine (it is "yours", and you can do whatever you want with it). In the second case you can either use a BD in the cloud (both in Azure and outside it, as long as you have something like a connection string that points to where the database is stored), or even have a local database (in your company), and access it via " Hybrid Connections ".

Regarding speed: it probably will not make much difference to you if you have the site running locally. The advantage of Azure (and other cloud providers, such as AWS) is that they have multiple data centers , so you can have your website redundant across multiple locations and the client will access whatever you have close, reducing the latency of requests.

Regarding the price - you pay for what you use. A virtual machine will come out more expensive than a simple website, but you have more control. With the websites there are also several modes (from free, with relatively low quotas and worse performance, to the payments you pay depending on the size of the machine being used and how many copies (replication) are running. Take a look at the < a price calculator page you can get an idea of how much it costs.

29.05.2015 / 23:50
1

If you are thinking about the context of a machine, then there are almost no advantages. I say almost, because it always takes advantage of the tools offered in these cloud environments, but, in contrast, it is a more expensive (proportionally speaking) environment.

The advantages of environments like Azure will appear in cases where you need to scale your site.

An example would be if you have a machine that will run 100% of the time (24 h / d and 7 d / s). And you can rent another machine that will only be switched on at peak times.

Why would anyone want this? Why not a single machine and more "powerful"?

To explain it is necessary to keep in mind that:

CLOUD (the Azure in the case) === Super managed / controlled environment

If it's a "super managed" environment, I can rent a very small machine, pay less for it, and plug in another machine only when my site has the demand for it.

Just to explain what I mean by "super managed" ... It's because, in environments like Azure, there are several variables that we can configure according to our demand. We can configure bandwidth, disk space, memory, etc. (several other things). And once configured we can create images (copies of the machine) and replicate very easily. And still decide what time to turn on / off each machine. And best of all ... This can be, after configured (of course:]), automated.

And with that, companies, when they find the right equation, start to save money.

In short ... Cloud (Azure, in this case) is the place for us to have an environment that always has 100% resource use. That is, nothing idle, nothing to pay for what is not being used.

    
30.05.2015 / 08:32