Programming for cloud systems looks deceptively similar with programming web and enterprise applications except that it is harder. The challenges that a few years ago were reserved only for distributed systems specialists from academia or from big internet companies are now coming to masses. The well known methods of dealing with concurrency and scalability by using threads should be replaced with asynchronous messages because vertical scalability is limited and expensive. Programming with asynchronous messages can be also a challenge and we present in this paper an improved method, called swarm communication. The proposal is based on the metaphor inspired by nature, and we think at messages as relatively smart beings visiting relatively non intelligent places. Through this article we describe this new method for decomposing complex applications in small services and we will present how dynamic scalability can be achieved in a swarm system.
展开▼