Difference between revisions of "Technology Architecture For Enterprise"

From AccountIT
Jump to: navigation, search
(Child pages)
Line 23: Line 23:
 
= Technologies =
 
= Technologies =
 
== UI Frameworks ==
 
== UI Frameworks ==
=== Play Framework ===
 
The AccountIT application will be based on the Play Framework. Play provides a UI framework that has support for HTML5 and JavaScript making it possible to provide a modern web-application feel.
 
The framework provides a developer friendly environment making it easy to develop and test - this is the primary reason for choosing this framework.
 
Development can be done in both Java and Scala - giving possibility to mix Object Oriented with Functional Programming.
 
  
 
== Messaging ==
 
== Messaging ==
=== RabbitMQ ===
 
Messaging is used to build a asynchronous system based on the CQRS pattern. The commands represent update requests, while query represent search requests.
 
RabbitMQ will also be used to integrate between AccuntIT and supporting business systems (such as CRM, ERP, support and sales systems). But also between supporting business systems.
 
  
 
== In memory data-grid ==
 
== In memory data-grid ==
=== Hazzelcast ===
 
Caching mechanism have been used in almost any component of a system to hold configuration data used by the component. E.g. a web-application may cache static information to reduce response time.
 
To support clustered caching, in memory data-grid have been developed, providing with the benefits of caching distributed to all members of a cluster.
 
  
 
== Datastore ==
 
== Datastore ==
=== NoSQL ===
 
These are mainly "key - value" or "document store". But other forms exist (especially Google has made a few, which are especially well suited for big data and complex searching)
 
* Key - Value : These represent a persistent form of e.g. the Map collection from java. I.e. a key and associated value, which can be anything. RIAK is a good solution within this domain.
 
* Document store : These are a persistent form of an object (object in OO terms) usually persisted using JSON. Elasticsearch is a good solution within this domain.
 
 
=== NewSQL ===
 
These are trying to get the best from relational and NoSQL, i.e. getting the search capabilities of SQL, but supporting horizontal scaling. This is very new technology, so not many have a good solution. A candidate is NuoDB.
 
 
=== NuoDB ===
 
 
=== ElasticSearch ===
 
  
 
== Operation System ==
 
== Operation System ==
=== CentOS ===
 
 
=== Ubuntu ===
 
 
=== XXX ===
 
 
=== FreeBSD ===
 
  
 
== Monitoring ==
 
== Monitoring ==

Revision as of 15:07, 24 May 2014

Introduction

The vision of the enterprise is providing a service with a minimum level of human intervention, thus the choice and use of technologies is essential driving the level and quantity of services that can be offered.

Technology drivers

Cloud

The core product of the enterprise will be a software service, and as the enterprise is not going to host / run a data center, the software service must be hosted / run on public cloud infrastucture (such as Amazon WebServices). With the major part of the cost associated with the cloud infrastucture it becomes essential that the service is not tightly tied with a particular cloud provider, giving the opportunity to change cloud provider should a cheaper option apear. As cloud data-centers are lease based, it is essential that the all systems (AccountIT as well as business systems) must be horizontally scalable ("elastic scaling") such that the systems can "scale down" i.e. reduce the use of "HW" resources like CPU, memory, hard-disk and network. Scaling must be automatic to provide with a "24 / 7" illusion to the user, while keeping the cost of leasing the "HW" resources is kept to a minimum. "HW" in this context is virtual as it is provided by a "Cloud provider" like Amazon WebServices.

Open Source

Likewise the software license for the 3rd party frameworks and libraries must have a cost structure that is easy to maintain and allows for dynamic growth (in connection with sudden demand). The ideal is use of Open Source framework / library code with the freedom of using it in our products without the need to "open source" it. But also proprietary software is an option as long as the license scheme provides the opportunity for use in elastic deployments, i.e. Cloud based with no fixed scaling (such as number of cores, nodes or the like)

Guiding Principles

The main guiding principle, for choosing technologies is that:

We want to have has few technologies as possible, yet for each problem we want to have the best possible technology.

  • We want few technologies, because the fewer we have, the easier they are to master. At the same time we want the best technologies, because they solve our problems in the most efficient way.
  • We should never have two different technologies for solving the same problem.

Technologies

UI Frameworks

Messaging

In memory data-grid

Datastore

Operation System

Monitoring

With a system landscape consisting of nodes in clusters monitoring occurs at two levels:

  • At node level with each node exposing monitoring information through a monitoring agent. A surveillance / monitoring tool used by IT operations can collect the information provided by the monitoring agent
  • An aggregated view of the cluster of nodes, displaying the overall state of the cluster of some node. The monitoring aggreate is hosted by the "Management Node"

Deployment

With cloud hosting the deployment has to be automated, as spawning a new instance and deploying the system is done via a API. There are two distinct strategies regarding deployment:

  • deployment system using an agent to deploy on the particular instance. Puppet is an example of this, where an image with the bare-bone OS and Puppet agent are deployed. When the Puppet agent starts it will look-up the Puppet master and request for its node configuration. The Puppet agent would periodically check with the Puppet master of its configuration and based on this update the node setup.
  • deployment of an image with the complete system. Packer is an example of this, where an image is "baked" with all the required components. The image is spawned when a node is requested from the cloud system.

Each of the two have pros and cons, and the choice will reflect the priority these have.



Child pages