Armada - 微服务完整解决方案


Apache
Linux
Python

软件简介

Armada 是微服务开发,部署,配置和发现的一个完整解决方案。

Armada 不仅仅是个工具,而且定义了面向服务的转换和良好实践。

构建:

john@desktop$ armada build chat-service
Pulling repository dockyard.armada.sh/microservice_python
...(skipped)...
Successfully built 3be42e99ca6a

john@desktop$ armada push chat-service
Pushing microservice chat-service to dockyard: dockyard.initech.com...
...(skipped)...
Image has been pushed.

运行:

admin@initech$ armada run chat-service --env production-aws

Running microservice chat-service from dockyard: dockyard.initech.com locally...
Service is running in container fc6776c8f6da available at addresses:
  192.168.1.43:49272 (80/tcp)
  192.168.1.43:49271 (22/tcp)

使用:

greg@ubuntu$ curl -X POST http://chat-service.initech.com/channel/chitchat -d '{"nick":"Greg","text":"Hello all!"}'
{
    "ok": true
}