Cocaine (PaaS)

Cocaine
Developer(s) Andrey Sibiryov and Yandex team
Initial release March 20, 2011
Written in C++
Type Web development
Website github.com/cocaine

Cocaine (Configurable Omnipotent Custom Applications Integrated Network Engine) is an open source PaaS system for creating custom cloud hosting apps that are similar to Bluemix, Google App Engine or Heroku. Several services have already been implemented this way, including a service for detecting a user's region or language, a service for accessing MongoDB storage, and a URL fetcher.[1]

History

In times when cloud technologies were not yet widely used, Andrey Sibiryov, the project founder, discovered Heroku. At that time Heroku was an app engine supporting only Ruby.[2] It was possible to create a Ruby app, push it to the cloud and not have to pay attention to any infrastructure problems. Load balancing issues were handled by the platform as well.

The idea was useful but it was hard to find any description of how it worked, which became a reason to start yet another open source cloud app engine project. The same logic was followed by many developers, which led to many cloud project start ups.

Initially Cocaine was a developer's pet project. However, everything changed when Yandex discovered an internal need of a scalable platform that could cope with millions of RPS. Cocaine served these purposes. Now, Cocaine is used in the Yandex infrastructure.[3]

Architecture

The cloud is made up of one or more independent machines that have the Cocaine server (Cocained) installed. Users know nothing about the location of the services they are accessing—only the address of the load balancer and the app name are available to them. User requests are sent to the load balancer, which passes them to the cloud. In the cloud, the optimal machine is selected for each request, and then the request is executed. The infrastructure details and the app's environment settings are hidden from the developer, as well. The developer only needs to send the code to the cloud and write a special manifest for executing the code. It is not necessary to set up anything else, such as databases, key-value stores, or HTTP clients. There are services that do this, which from the programmer's point of view are native modules for the programming language the code is written in. For example, the Storage service lets users access Elliptics storage, and the Uatraits service uses data about a client's user agent and its HTTP headers to determine the characteristics of the device that sent the request.

Applying the technology

In the cloud, apps can be written in various programming languages (C, C++, Go, JavaScript, Python, Ruby, and others) and frameworks (Node.js). Cocaine bound to a web server provides an automatically scalable deployment environment for web apps. The cloud processes large quantities of information, thanks to the streamed data exchange interface. Cocaine implements fault-tolerant and high-performance bus transmission of messages and events. Using the load balancer, user can create systems that are responsive to user actions. Apps in the cloud are run independently of each other. This allows multiple versions support of the same app and "soft migration" set up for moving users to updated versions of products. Apps can be tested in the cloud by in an isolated environment run. This way, program errors will not affect the physical system or other apps.

See also

References

  1. "cocaine-docs". Retrieved 8 May 2017.
  2. "The Big Kickoff". Retrieved 8 May 2017.
  3. Yandex's official documentation
  • Cocaine PaaS (official site) .
  • "Search Engine Giant Yandex Launches Cocaine", TechCrunch, 2013-10-16 .
  • "Russian Google Yandex Free Cloud Service Cocaine", The Guardian, 2013-10-17 .
  • "Free Cocaine giveaway from Russian Search Engine Yandex", The Register, 2013-10-17 .
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.