Posts mit dem Label Cloud-Based Services werden angezeigt. Alle Posts anzeigen
Posts mit dem Label Cloud-Based Services werden angezeigt. Alle Posts anzeigen

Continuous Delivery - software-architectural topics

In my last post about Continuous Delivery was the focus on the delivery process. However in this post we will concentrate on the software and the necessary architectural requirements.

So the central question is, how to deliver new functionality as a software many times during a day without adverse effects. How is it possible that companies like Facebook despite major projects with hundreds of developers can manage this?

The first step in the praxis should be the system redesign from a monolithic application towards to split into small pieces (functions, components).
The components are separated and the communication is possible just via a clear API, like for example REST.


The second step would be the redesign of the underlying database. 
Encapsulating the access logic in an interface promotes a service oriented design. A distinction is made between an Application Database, belonging to one application, and Integration Database, shared by different applications and systems.


Avoid Server-side Session State
If short-time information are stored in a local cache of the server then we are talking about Server-side Session State and as such there are the particular instance fails the session is gone. For example during a deployment of new software version to this server instance.
Stateless services enable  a downtime-free deployments.

Keep backward Compatibility
This point is not so easy and it is very complicated to guaranty the compatibility after each modification of the system. Actually this means that the new functionality is co-exists with the old one.

Design for Failure
No system has got 100 percent availability. More important for the enduser is the impact of not functioning component. If one specific function fails, it should not cause the failure of the whole system. 
This is very crucial for continuous delivery concept, otherwise the risk of failure and its impact would be enormous.

Schema-less Database
Changes on the structure of database or its migration are in most of the time very complicated and risky.  The clear advantage is coming with NoSQL databases, or with migration running inside of the application and not in separated database migration scripts. Such scripts last too long and the migration would be not possible in the real-time.


Overall, the goal should be to reach the "Shared-Nothing" Architecture.  This architecture is defined through no direct references between two or many systems which enables a horizontal scalability and release deployment without down-time.



 
 
Read more

Eindeutiger Trend zu Cloud Based Integration (CBI)

B2B-Kommunikation, mit seiner ursprünglichen Form von EDI-Nachrichten, ist die älteste und leider die am wenigsten flexible Form der Integration zwischen Systemen und verschiedenen Unternehmen. Viele Unternehmen betreiben B2B-Gateways im klassischen Lizenzmodell ("On-Premise") oder im Rahmen von abgeschlossenen Managed-Service-Verträgen für "ihre eigene B2B-Hub Instanz."



Und wie ist dieser Einsatz zu bewerten in Hinblick auf die zukünftige Marktentwicklung?



  1. Die zukünftige Cloud / Legacy-Lösung sollte die Integration sowohl Geschäftspartner als auch SaaS-Anwendungen abdecken.Es gibt zwei sehr unterschiedliche Integrationsszenarien. Entweder handelt es sich um eine Integration zwischen verschiedenen Systemen in einem Unternehmen - eine Middleware-Software (wie EAI, ESB und BPM) wäre die passende Lösung, falls es sich um "On-Premises" Systeme handelt. Oder es ging um die Integration von Geschäftspartnern - die etablierten B2B/EDI Gateways und Managed Services waren die passende Lösung (über das Internet) in diesem Fall.Mit der Einführung von SaaS Applikationen wurde eine Integration zwischen On-Premise und Cloud-Based Lösungen notwendig. In diesem Fall kann sich eine B2B Kommunikation auf eine "move" Aktion innerhalb einer Cloud Plattform beschränken!Um diesem Trend  der zunehmenden Integrationsvielfalt zu tragen, sollte die Nutzung der Synergien zwischen den Cloud / Legacy-Integration-Szenarien in der zukünftigen Integrationsstrategie berücksichtigt werden.



  1. CBI füllt die Integrationslücke von SaaS Anwendungen aus.
    Cloud Computing wird durch starke Standardisierung, Self-Service und die OPEX-getriebenen Geschäftsmodelle charakterisiert - und dieses Modell wird durch die meisten SaaS Business-Anwendungen unterstützt. Allerdings sitzen die meisten traditionellen B2B-Anbieter in einem Managed-Service-Paradigma fest und tun sich schwer echte SaaS-basierte Integration anzubieten.Cloud-basierte Lösungen müssen sich deutlich vereinfachen im Vergleich zu den herkömmlichen, zum Teil recht komplizierten, Integration Systemen. Vor allem, wenn sie von KMU oder kleinen Unternehmen genutzt und akzeptiert werden sollen.



  1. CBI ist noch nicht Integration PaaS.
    Es wird interessant zu beobachten, welche Integrationspakete von CBI Anbieter in der Zukunft angeboten werden. Die Grenzen zwischen einfachen CBI Lösungen und Integration-PaaS werden wohl im Rahmen von nativen Cloud-Plattformen verschwimmen.



  1. Analyse des Integration Workloads basierend auf  der Veränderbarkeit einer Geschäftspartneranbindung und den Datenvolumen.Ein wesentlicher Treiber des TCO in der B2B-Integration ist das Onboarding eines neuen Geschäftspartner oder die schnelle Umsetzung neuer Nachrichtentypen. Auf dem Chart auf der X-Achse dargestellt.Der technische Betrieb eines B2B-Gateway Systems wird bei Millionen von Nachrichten pro Tag recht anspruchsvoll und komplex. Diese Größe wird auf der Y-Achse abgebildet.Diese zwei Größen können einem Unternehmen bei der Entscheidung helfen, ob ein "On-Premises" B2B System, oder doch eine Cloud Based Integration Lösung passender wäre.


  1. Managed Services können hohe Volumina effizienter betreiben.
    Es handelt sich nicht wirklich um SaaS, es ist nicht einfach und basiert auf der gleichen zugrunde liegenden Anwendung, die auch lizenziert und in-house eingesetzt werden kann.Managed Services werden vor allem von den Software-Herstellern selbst angeboten. Die vorhandene Expertise bietet dem Kunden offensichtliche Vorteile im Betrieb eines Managed B2B-Service.


  1. CBIs SaaS Prinzip und Einfachheit reduzieren anfallende Kosten bei häufigen Veränderungen.Das Handling von vielen neuen Geschäftspartnern jeden Monat erfordert eine drastische Reduzierung der Komplexität. Das ist genau das, was die CBI-Tools für die Integration von SaaS-Anwendungen liefern. Vorteile werden auch in einfachen B2B-Szenarien innerhalb häufig wechselnden Business-Netzwerken deutlich. Die Preisgestaltung der meisten CBI-Lösungen in der Cloud bezieht sich auch das Transaktionsaufkommen am Tag.


  1. Sich häufig ändernde, High-Volume große Business-Netzwerke werden am besten mit einer Hybrid-Integrationsstrategie begegnet.Bei einer gemischten Systemlandschaft mir einem hohen Transaktionsvolumen von mehreren Millionen Nachrichten pro Monat, und auch bei häufigen Neuanbindungen der Geschäftspartner und hiermit verbundenen neuen Datenformaten, eignet sich eine Hybrid-Lösung am besten.



Die ganze Integrationsbranche ist in Bewegung, und die Cloud-Based-Modelle im Laufe der Zeit werden zunehmen. Viele Unternehmen, die SaaS-Anwendungen für CRM, HR und Groupware aus der Cloud beziehen, sind eigentlich wirklich frustriert, dass die meisten traditionellen B2B-Anbietern über Cloud reden, aber nicht wirklich etwas bieten können.



Je mehr Unternehmen die Wirtschaftlichkeit des echten SaaS Business-Anwendungen erkennen, desto mehr werden sie echte SaaS-Wirtschaft für die B2B-Integration fordern. Dies ebnet den Weg für neue Enterprise-B2B-Lösungen, die die traditionellen EDI-Funktionen mit den Eigenschaften der CBI so wie ein Self-Service-Katalog mit transparenten Preisen und ready-to-use-Integration-Szenarien anbieten.
Read more

Threaded vs. Evented Concurency


In the time of cloud computing the question raises at our company about the exposed well-defined backend services. In the current architecture, the services spend most of their time calling other services and waiting on I/O. In the common praxis most server technologies rely on a thread pool to handle I/O. In the business integration area we are confronted with very high traffic environments and processes.

Typical usage of the thread pools can be hard to manage. Big thread pools cause a lot of overhead and small thread pools may get exhausted if there is a spike in latency or traffic.

There are two general approaches –Threaded and Evented



Most development teams are using Threaded approach: one thread is dedicated to each request, and that thread does all the processing for the request until a response is sent. Any I/O, such as a call to a remote service, is typically synchronous, which means the thread will become blocked and sit around idle until the I/O completes.

By contrast, Evented servers typically use only a single thread per CPU core. The idea is to ensure that these scarce threads are never blocked: all I/O is asynchronous, so instead of waiting, the thread can process other requests, and only come back to the current one when the response from the I/O call is ready.

Threaded vs. Evented performance


Threads are resource-devouring and have significant memory overhead (e.g. default stack size for a single thread is 1MB on a 64bit JVM) and context switching overhead (e.g. saving register state, loading register state, impact on CPU cache/pipeline, lock contention). Creating threads on the fly tends to be expensive, so most servers use a fixed thread pool.

Therefore, the crucial parameter of Threaded servers is the size of the thread pool. If there are not enough threads, it’s easy for all of them to become tied up waiting for I/O, preventing any new requests from being processed even though most of your threads are just idly waiting. If the thread pool is too big and there are too many threads, the extra memory usage and context switching overhead become very costly. The right size of thread pool is practically impossible.

On Evented servers, waiting for I/O is very cheap: the actors are lightweight and consume about 600 bytes memory. Idle requests have negligible cost, as they don’t hold up an OS thread. It is very tempting to use evented servers to be able to handle far more concurrent requests than Threaded servers so.

But be careful! Even a single long calculation or accidental blocking I/O call can bring an Evented server to its knees!

Resources:

http://engineering.linkedin.com/play/play-framework-async-io-without-thread-pool-and-callback-hell

http://akka.io/

http://www.playframework.com





Read more

The future of Cloud-Based Services

What are the advantages of cloud-based services, especially in the global business?
What are the coming innovative scenarios and key issues?

ServiceCloud
© 2013 proaxia consulting 


Increased efficiency through the Service Cloud


At first the existing Service-Cloud-Solution has been analyzed with the focus on the practical implementation. Especially the companies with the complex service business can increase the efficiency and quality in the customer service by use of cloud-based services.

Small and medium-sized enterprises in particular can realize innovations quickly and cost-effective, by use of new technologies, such as mobile apps and social media.

Requirements for Service Cloud in the Future


Especially for SMEs could represent the Service Cloud an alternative, to support the information-intensive business processes of global service networks. Many companies use IT solutions that do not meet the current demands in the service business anymore.

Research project continues


The goal should be to lay the cornerstone for the Service Cloud future. I will keep the study in sight…

More information see here Netzwoche.ch.



Read more