Technical Series: Deployment Architecture and Performance

on February 10, 2020
Deployment Architecture and Performance

More than a Decision Engine

In our last post we discussed Decision Engine Performance and how our SMARTS™ decision management platform provides different engines that are optimized to their specific application. In this post we will cover how deployment architecture choices impact technical performance. SMARTS™, for example, provides higher-level support for implementing your decision management system beyond a decision engine. This higher-level support provides greater security, scalability, availability, and traceability.

In particular, SMARTS™ enables users to build decision services for micro-services as well as other service approaches. Delivered in either repository-based or decision-based Docker containers or Virtual appliances, SMARTS™ decision services add additional features, including the following:

1) Deployment Architecture for Secure Service Invocations (typically JSON over HTTPS)

Organizations can invoke decisions through services in an authenticated (access tokens) context. Many users and systems may invoke the service concurrently, using any client technology that can interact with services. Sparking Logic provides Java, .NET standard, Python 3, NodeJS SDKs to facilitate the client implementation.

2) Deployment Architecture for Horizontal/Vertical Scalability and High Availability

Decision engines executing within the decision service will leverage all cores available to them within the installation. More cores means more scalability or the ability to support more concurrent executions. Typically, the scalability is linear (+1 core = +1x power).

In addition, deploying multiple microservice installations behind a load balancer can ensure you meet your desired uptime and response time requirements. To do so requires using orchestration and load balancer technologies available within your environment (on-premise or cloud). SMARTS™ allows you to have multiple instances, leveraging your own replicated repositories or leveraging an external repository, all implementing the same set of services. These instances are then deployed behind a load balancer and provide you with scalability by adding more instances. You may also add on-demand instances (with replicated or delegated repositories) to cope with elastic loads. SMARTS™ automates all the processes that keep those services in sync, updating them as you change the decision logic.

SMARTS™ also allows you to have redundancy in your decision services. Having multiple instances with replicated repositories removes any single point of failure. Even if an instance fails, the rest of the replicated instances will continue with the load.

3) Deployment Architecture for No-Downtime Hot Swap and Ready-To-Execute Decision Logic

SMARTS™ provides multiple levels at which you can hot swap decision logic. Hot swap means that your updating your decision logic in production, without shutting down your decision service or any systems that are invoking that service. At the highest level, your lifecycle manager can change the release of the decision logic being executed with one click. This change occurs without any IT intervention and causes no downtime. SMARTS™ will load the new release and hot swap it automatically (if there are no errors).

For added security, you can configure your settings so that when a new release is not loadable or has compilation problems, you will receive a notification that the new release failed and either continue with the previous version or stop the service altogether. You can also hot swap your decision logic using other orchestration mechanisms, but that typically involves IT. SMARTS™ is designed to minimize IT resources and empower the business analysts and domain experts that own the decision logic.

In addition to supporting hot swap, SMARTS™ allows you to specify when a decision service is ready to receive invocations. Setting a delay, ideally after the new logic is loaded, compiled, and cached in memory, ensures that the first invocations won’t suffer performance loss.

4) Deployment Architecture for Full Traceability

SMARTS™ provides all these performance features in a secure and auditable way. This is great for troubleshooting, risk mitigation, and compliance. Who made what changes when are all tracked. Decision services can only use read-only project releases. This means the decision logic in the release cannot be edited. What is intended to deploy is what will deploy. In addition, the information of what release is used on any service invocation is returned to the invoker.

In our next post, we’ll discuss how design impacts business decision performance.

Learn more about Decision Management and Sparkling Logic’s SMARTS™ Data-Powered Decision Manager

Search Posts by Category

ABOUT US

Sparkling Logic Inc. is a Silicon Valley-based company dedicated to helping organizations automate and optimize key decisions in daily business operations and customer interactions in a low-code, no-code environment. Our core product, SMARTS™ Data-Powered Decision Manager, is an all-in-one decision management platform designed for business analysts to quickly automate and continuously optimize complex operational decisions. Learn more by requesting a live demo or free trial today.