Introduction

In the past years we have seen how we moved from Web 1.0 to the 2.0, and later, 3.0 (actually we are in the process, aren't we?).

After social networking, blogging, wikis and so on, one of most important concept evolved in the 2.0 era have been the Web of services, or better known as cloud computing.

Nowadays we are hearing "cloud", "cloud", and "cloud" everyday!

But what's "the cloud"? Well, honestly it can be tons of definitions, but a summary would be a set of services which are remotely accessible by end users and other services. That is a cloud is a service or some services offered by a profit or non-for-profit organization, accessible via a well-known interface, which can be integrated in other business processes.

One of best benefits of cloud computing is the decentralized model: a service could be accessible by some URI/URL and consumers don't care about where is physically located.

Ok, but wait... We have been accessing Web sites and Web services for years and by URI/URL...

Usually cloud computing means services are distributed over the globe. Say you have a service "MyService.com" and it is accessed by an American guy and later by a Chinese guy. An actual cloud service would have a distributed system including a great server in North America and other one in Chine, so first and second guy may be served by their nearest server, even if they access to some resource by the same URI/URL!

At the end of the day, accessing a service in the cloud means you care about what you need but you don't care about how it does.

Restful Framework: a .NET code hosting in the cloud

Restful Framework is a .NET code hosting in the cloud and hosted code is accessible via a simple but powerful RESTful-style API.

Basically, you develop class libraries and you expose your software business RESTfully.

But what's new when using Restful Framework? Instead of having to develop a set of Web services, our infrastructure exposes a single, global service which expects some parameters and a command.

Actually, Restful Framework is a private shell command line in the cloud, meaning that if you implement your code and you expose it deriving a specific class, you would have something like this:

[ShellCommandName("hello-world")]
public sealed class HelloWorldCommand : ShellCommand
{
         [ShellCommandArgument("name")]
         public string Name
         { 
                get; set;
         }
         
         public void Execute(ShellResponse response) 
         {
                response.Data = new { Text = "Hello world, " + Name };          
         }
}


And, some remote client would call your command this way:

hello-world @name "Matías Fidemraizer" 


Data exchange has this features:
  • Secure connection: Restful Framework is accessible via HTTPS.
  • JSON data transaport format.
  • APP KEY system + Authentication: your code is your code. Your client application is the only allowed to access your hosted code.

In order to gain access to our infrastructure, you need to register an user and create an application in https://restfulframework.com/Login.

Once you have created an application, you can upload packages containing your commands! And that's all! Just call our API, authenticate your request with an APP KEY and an user and password.

Now is time to go to the next section: Understanding server platform.

Last edited Jul 4, 2012 at 1:20 PM by MFidemraizer, version 1

Comments

No comments yet.