ic_agile_128ic_business_128ic_agile_white_128ic_banknote_smile_128ic_business_128ic_business_128ic_checkmark_128ic_client_team_manager_128ic_code_file_128ic_code_files_128ic_corporate_cloud_platforms_128ic_crossplatform_apps_128ic_dedicated_team_128ic_developer_128ic_development_team_128ic_enterprise_128ic_faster_timeframe_128ic_fixed_price_128ic_graph_down_128ic_graph_down_128ic_hourly_128ic_hourly_white_128ic_information_finder_128ic_junior_developer_128ic_managed_team_128ic_message_128ic_mobile_app_startups_128ic_mobile_development_128ic_mobile_development_up_128ic_mobile_devices_128ic_multiplatform_128ic_multiplatform_white_128ic_pricetag_128ic_project_checklist_128ic_project_management_128ic_project_management_team_128ic_research_and_development_team_128ic_scalable_team_128ic_senior_developer_128ic_smaller_codebase_128ic_smaller_price_128ic_startup_128ic_team_manager_128ic_three_times_faster_128Arrow_Dropdownic_001_google+_16ic_002_xing_16Group 2ic_003_facebook_16ic_004_linkedIn_16Groupic_005_message_16ic_006_upload_16ic_007_remove_16ic_008_email_16ic_009_attachment_16ic_010_file_16ic_011_name_16ic_012_arrow_left_16ic_013_arrow_right_16ic_014_arrow_down_16ic_015_arrow_up_16ic_016_dropdown_arrow_down_16ic_016_dropdown_arrow_leftic_016_dropdown_arrow_rightic_017_K&C_dropdown_arrow_up_16ic_018_language_16ic_019_Quote_16ic_020_+_16ic_021_=_16ic_022_phone_16ic_023_twitter_16ic_024_position_16ic_025_company_16ic_026_search_16ic_027_mobile_16ic_028_fax_16ic_029_location_16ic_030_enlarge_16ic_031_downscale_16ic_032_contactic_download_normal_16pxic_033_skype_16ic_006_download_16 copySearchGroup 26Rss_font_awesomelinkedintwitterK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxK&C_Icons_32pxConsul_VerticalLogo_FullColorPacker_VerticalLogo_FullColorTerraform_VerticalLogo_FullColorVault_VerticalLogo_FullColorethereum_black_64ic_Interest_based_64ic_acrivate_card_64ic_api_client_64ic_application_architecture_64ic_application_architecture_ white_64ic_application_development_user_64ic_application_development_user_64ic_arrow_down_64ic_automated_backups_64ic_automated_infrastructure_provisioning_64ic_automated_infrastructure_provisioning_white_64ic_automated_storage_64ic_automated_storage_64ic_automation_64ic_microservice_architecture_64ic_avaliability_across_the_world_64ic_avaliability_across_the_world_white_64ic_blockchain_64ic_blockchain_white_64ic_brackets_64ic_brackets_64ic_build_64ic_build_64ic_build_64ic_business_64ic_business_partnership_64ic_business_partnership_white_64ic_business_64ic_calculator_64ic_calendar_64ic_calendar_64ic_car_rent_64ic_card_renewal_64ic_chat_64ic_chat_bubbles_64ic_chat_bubbles_64ic_chat_white_64ic_checklist_64ic_checkmark_64ic_blockchain_64ic_smart_development_64ic_blockchain_consulting_64ic_checkmark_white_64ic_clock_64ic_clock_white_64ic_cloud_media_64ic_cloud_solutionsic_cloud_solutions_whiteic_cluster_64ic_cluster_white_64ic_code_base_optimization_64ic_coding_64ic_coding_white_64ic_commenting_widget_64ic_commenting_widget_64ic_containers_64ic_containers_white_64ic_continious_64ic_continious_delivery_64ic_continious_delivery_white_64ic_continious_release_64ic_continious_release_white_64ic_continious_white_64ic_cost_saving_64ic_cost_saving_white_64ic_cpu_load_64ic_credit_card_64ic_crossplatform_app_development_64ic_crossplatform_app_development_white_64ic_custom_crm_64ic_custom_crm_64ic_independence_consulring_64ic_database_calls_64ic_database_calls_white_64ic_dedicated_teams_64ic_dedicated_teams_64ic_desktop_application_user_64ic_desktop_application_user_64ic_desktop_code_64ic_desktop_code_white_64ic_developer_64ic_developer_white_64ic_development_64ic_devops_64ic_devops_64ic_documents_64ic_documents_graph_64ic_documents_graph_white_64ic_documents_white_64ic_download_presentation_64ic_education_64ic_email_open_64ic_email_open_white_64ic_environment_healthcheckethereum_white_64ic_euro_64ic_euro_white_64ic_failure_solved_64ic_gdpr_64ic_globe_outlines_64ic_good_quality_64ic_high_load_websites_64ic_high_load_websites_white_64ic_hotel_booking_64ic_inability_64ic_inability_white_64ic_increase_64ic_increase_white_64ic_increasing_team_64ic_independence_64ic_integration_64ic_it_outsourcing_64ic_it_outsourcing_64ic_knowledge_sharing_64ic_mobile_devices_64ic_laptop_user_64ic_laptop_user_white_64ic_launch_64ic_launch_white_64ic_learning_64ic_learning_two_white_64ic_lighthouse_64ic_link_64ic_load_balancer_64ic_load_balancer_64ic_load_card_64ic_lock_64ic_lock_white_64ic_low_cost_64ic_low_load_websites_64ic_maintenance_tools_64ic_maintenance_tools_white_64ic_media_player_64ic_media_player_white_64ic_messaging_platforms_64ic_microservice_architecture_64ic_microservices_64ic_microservices_64ic_mobile_app_64ic_mobile_app_64ic_mobile_content_64ic_mobile_development_64ic_mobile_development_white_64ic_mobile_devices_64ic_mobile_devices_white_64ic_mobile_payments_64ic_mobile_social_media_applications_64ic_mobile_workflows_64ic_money_transfers_64ic_multimedia_sharing_64ic_multimedia_sharing_white_64ic_my_garage_64ic_no_access_64ic_no_access_white_64ic_no_oldschool_64ic_online_marketplaces_64ic_online_marketplaces_white_64ic_online_trading_64ic_online_trading_64ic_pair_device_64ic_parallels_64ic_parallels_white_64ic_passcode_64ic_payment_systems_64ic_performance_64ic_performance_issues_64ic_performance_issues_white_64ic_performance_white_64ic_plane_64ic_plane_white_64ic_plus_64ic_plus_64ic_pricetags_64ic_pricetags_64ic_product_64ic_product_search_64ic_product_white_64ic_productivity_tools_64ic_productivity_tools_64ic_project_delivery_64ic_project_delivery_white_64ic_project_management_64ic_project_management_collaboration_64ic_project_management_team_64ic_project_management_team_white_64ic_project_risks_reduced_64ic_quality_mark_64ic_quality_mark_64ic_quality_mark_white_64ic_question_64ic_react_native_64ic_response_time_64ic_response_time_white_64ic_rest_api_64ic_retail_64ic_transparency_consulting_64ic_scale_up_64ic_scale_up_white_64ic_security_64ic_security_64ic_self_healing_64ic_self_healing_64 copyic_send_money_64ic_server_64ic_server_white_64ic_shopping_64ic_shopping_white_64ic_sleep_mode_64ic_small_is_beautiful_64ic_smaller_price_64ic_social_benefits_64ic_social_connections_64ic_socket_64Group 20ic_spare_parts_for_cars_64ic_spare_parts_for_cars_white_64ic_speedometer_64ic_performance_consulting_64ic_speedometer_white_64ic_startup_64ic_startup_white _64ic_target_64ic_team_64ic_testing_64ic_testing_checklist_64ic_testing_checklist_white_64ic_testing_white_64ic_three_times_faster_64ic_touch_64ic_touch_id_64ic_touch_white_64ic_transparency_64ic_ui_design_desktop_64ic_ui_design_mobile_64ic_ui_design_mobile_white_64ic_umbrella_64ic_umbrella_64ic_umbrella_white_64ic_up_and_down_scaling_64ic_up_and_down_scaling_64ic_users_64ic_users_white_64ic_ux_design_64ic_ux_design_desktop_64ic_ux_design_64ic_ux_design_white_64ic_vehicle_64ic_web_based_search_64ic_web_based_search_white_64ic_web_browser_code_64ic_web_browser_developer_mode_64ic_web_browser_user_64ic_web_development_64ic_web_development_white_64ic_web_portals_64ic_web_portals_64ic_web_user_64ic_web_user_white64ic_workflow_64ic_workflow_steps_64ic_workflow_steps_white_64ic_workflow_white_64ic_working_environment_64solidity_blackGroup 19

The BPM in the Microservice Environment

If you are thinking about implementing a system where functionality can be changed in a runtime mode, then you may need to add a workflow engine that can execute business processes. This feature allows you to:

- Make the system functionality more flexible;

- Speak the business language;

-  And even change the rules of game!

In an ideal scenario, businesspeople would be able to not only see the description of their service’s work in a recognizable notation, such as BPMN 2.0 but also influence the description on their own.

Everything seems quite straightforward when it refers to a single monolithic application, near or inside of which, a workflow engine is installed [Pic. 1]. However, what’s to be done if you want to get a modern system, build a microservice architecture, or take advantage of all its benefits?


When you have dozens of microservices, where each is performing a separate function, and dozens of instances of some of them in order to cope with the load, is it worth to being frightened and refusing to use workflow engines? The answer is not! We know for sure that even in these cases you can take advantage of all the benefits of BPM. We at K&C have done it.


Indeed, the K&C agile development team has experience in creating microservice systems that include a workflow engine. Today, we want to share some tips.


Our goal: to create the system, the functionality of which will be divided between several microservices, each of which can be run multiple times and where at least the part of functionality will be represented in the form of a workflow, described in the BPMN 2.0 notation.


To do this

1) We take each of the microservices we want to improve, carefully extract the logic from them, and then present it in the form of a workflow.


It is assumed that the functionality of each microservice is sufficiently isolated, and after turning hardcoded logic into a flexible workflow, it will still be an isolated part of the service and will only interact with the workflow.


2) We also need an engine that will execute our workflows. There are many such engines, so there is a great deal of choice.


3) We add a database to the engine. Although a microservice may already have its database, it is still usually not worth using the same database for both the microservice and its processes - it is better to have separate storages. When transferring the logic to the process, you should adequately divide the stored data into those that the process will take and those that will remain in the microservice.


4) Next, you need to determine how many instances of the engine there will be and how the engine will interact with the microservices. It would seem that you could use one separate engine for all instances of the microservice [Pic. 2]. Probably, in this case, they will communicate via messages, or even by REST API.

However, under this approach, the engine risks becoming dependent on other services – which can “bury” all our microservice architecture. In addition, the possibility of horizontal scaling is lost, for the sake of which we have chosen a modern micro-service architecture.


Of course, you can think about clustering the engine, but there is another solution: we take a lightweight engine and build it right into the microservices! If the engine is well chosen, then there is nothing complicated about this; and you’ll still have as many instances of logic as there was before.


Moreover, the interaction is simplified: it is assumed that the engine is designed for such an embedding and allows direct calls right in the code of the microservice without the need to use any channels! In this case, microservices are simultaneously connected to several bases: its own base and the engine’s base [Pic. 3].

5)  If you want your application to have an Administrator UI and/or a Cockpit, – which is quite likely, then you should also know how to create it. Since we assume you have a significant number of microservice instances, you’ll have to run a separate workflow microservice, which includes whatever is required for an administrator control panel and is connected only with the engine’s base [Pic. 4].

That's about it. The dedicated K&C team hopes it managed to show that the use of the workflow engine in a microservice environment is possible, as well as identify at least some of the potential solutions. In this way, we achieve the fantastic power that the microservice architecture can bring, as well as the transparency and flexibility provided by the process approach. Of course, there are always hundreds of questions to be answered in each specific case. However, who said you won’t be able to answer them?

SHARE WITH FRIENDS
You might find this interesting
E-book
Hiring Web Developers — The Complete Guide
E-book
Top Tools for Cost-Effective Web Development — eBook
Our cases
Reformation of Deployment Cycle for Bosch Classic Cars Portal
Our cases
Fast and Lightweight Mobile Application based on PhoneGap/ Cordova
E-book
Determining Approaches to Mobile App Development
Our cases
VAIX - Fault tolerant infrastructure for 24/7 high-load machine learning service
Testing
Qualität + Transparenz durch Agile Test Coaches
Other
ANGULAR, VUE, JQUERY, REACT ODER EMBER?
Web,Amazon Web Services
Vorteile durch Serverless Development für Startups: niedrigere Kosten, kürzere Time-to-Market
DevOps
Ist serverlose Architektur die Zukunft der Webentwicklung?
Our cases
The Platform Providing Event Organization
Testing
Fallstudie Testautomatisierung: Cucumber, Selenium und Jira Xray
DevOps
Kubernetes Beratung – Übernehmen Sie die Kontrolle über Ihre K8s!
Our cases
Liferay Portal Developers: Performance Tuning Case Study
Our cases
Reference: Major producer of auto electronics and spare parts
Web,Other
JAMSTACK IS THE NEW FACE OF STATIC SITES
Web
When Microservices Help Make Future-Ready Products
Outsourcing
Agile entwickeln mit festen Budgets | K&C Software München
Web,Outsourcing
How to Control Agile Development: Progress and Costs
Other
Culture eats technology for breakfast
DevOps
Monolith, Microservices, Serverless... Which Will You Choose and Why?
Other
Big Data: Why Your Business Needs it ASAP
Other
Europe’s Big Payments Directive PSD2
DevOps
Cloud-Trends 2019 - Hybrid, SAAS und PAAS | K&C Beratung
Web,Amazon Web Services
Your Guide To AWS Cognito For Serverless User Authentication
Web,Amazon Web Services
React Developers Munich
Our cases
Bosch Classic Cars - Digital Engagement Platform for 19K Vintage Car Owners
Our cases
CLOUD-LÖSUNG VS. BARE METAL SERVER: WANN MACHT WELCHER ANSATZ SINN?
Amazon Web Services
Auswahl Cloud-Provider ohne Vendor Lockin
Web,Amazon Web Services
Serverless vs. Hadoop & Containers In The Evolution Of Big Data & AI
Web,DevOps,Our cases
Our case: Marketplace for gaming goods
DevOps
Kubernetes-Cluster absichern mit Hashicorp Consul/Vault
Web
How to Motivate Your Dedicated Team to Work with Legacy Projects
DevOps
DevOps als DevSecOps – Integrierter Schutz vor Bedrohungen ohne Termin- und Budgetüberschreitung
DevOps
Hybrid, SAAS+PAAS: cloud solution trends to watch in 2019
Our cases
How to apply React Native while developing heavy cross-platform mobile apps
Web
Fintech Apps - A Lucrative Solution for Customers and Businesses Alike
Our cases
Drivelog.de — Web Marketplace for Car Owners and Service Providers
E-book
Digital Transformation: the Philosopher’s Stone of Economic Growth
Web
Why Serverless Development For Start-Ups: Lower Costs, Faster to Market
Our cases
Micro-service Architecture for New AngularJS Application - Case Study
DevOps
KUBERNETES-BERATUNG: SCHRITT FÜR SCHRITT ZUM HEPTIO ARK (VELERO) BACKUP
DevOps,Outsourcing
KUBERNETES ALS FÜHRENDE MICROSERVICE-ARCHITEKTUR IN PUNCTO SICHERHEIT
Web
Scaling software solutions - how it works
Web,Amazon Web Services
What's New In React 16.3.0 - 16.4.2 | K&C React Dev
Web,Other
How to Make Your Web Solution Rock: 7 Areas to Check
Other
The Power of the Holistic Business Analysis
Web,Mobile,Amazon Web Services
SERVERLOSE ARCHITEKTUR FÜR CLOUD-BASIERTE APPS: TECHNOLOGIE-ANBIETER UND GRENZEN
Marketing
Аudience-based Marketing
Our cases
Portal Performance Tuning For Major German Travel Agency
Web,Outsourcing,Other
Angular 5 VS React.js – Who’s Going to Set the Tone in the Upcoming Year?
DevOps
Installation and setting up: Nextcloud as a local network storage on CentOS7
DevOps
Setting Up: Traefik Balancer In Rancher Cloud
DevOps
Your DevOps Transformation Consulting Partner
Mobile
WHY THE IONIC FRAMEWORK IS THE BEST CHOICE FOR YOUR HYBRID APP
Web,Outsourcing,Other
Angular vs. React vs. Vue – Let the Fight Start!
Web
Pros and Cons of Serverless Web Development
Web,Outsourcing
Migration from Angular 1 to Angular 5
DevOps
DevOps Consulting – Our Business Is Automating Yours
DevOps,Amazon Web Services
Kubernetes at the Forefront of Secure Microservices Future
Web,Amazon Web Services
Your Expert Angular Developers in Munich | K&C Development
Web
Angular 4 vs React – what to choose in 2017
Web,Outsourcing
ANGULAR 6 versus REACT 16.3
DevOps
Is Serverless Architecture the Future of Web Development?
DevOps
Serverless Architecture Consulting Services
DevOps
Kubernetes Consulting – Take Control of Your K8s!
Web
Debunking imaginary shortcomings of cross-platform frameworks
DevOps
Serverless Providers: A Comparative Analysis of AWS Lambda, Azure Functions & Google Cloud Functions
Web,Mobile
Wann eignen sich Progressive Web Apps ?
Web,Outsourcing,Testing
Web App Security 101: Keep Calm and Do Threat Modeling
Amazon Web Services
Hybrid Cloud Consulting Services in Munich
Other,Marketing
How to Become a Leader in Your Market
DevOps
How To Launch Kubernetes Federation on Google Cloud Platform
Web
Advanced Technologies for Marketing Automation
Other
How to Convert Your Business to an Amazon-Style Market Leader
Outsourcing
SCALED AGILE FRAMEWORKS: HINTERGRÜNDE UND AUSFÜHRLICHER LEITFADEN
Testing
Test Automation Case Study: Cucumber, Selenium and Jira Xray
Web,Amazon Web Services
Cloud App Security: Three Authentication Approaches
Web
Cost efficient technologies
Web,Mobile,Back-end,Amazon Web Services
Why Enterprises Choose Serverless Architecture
Web
Angular 2.0 vs Angular 1.4. What fits you best?
Outsourcing
SCALED AGILE FRAMEWORKS: YOUR COMPLETE GUIDE TO WHICH, WHY AND HOW
Web
JQuery vs. Angular: Ad Astra per Aspera
Web,Mobile,Outsourcing
Progressive Web Apps and Why You May Need Them
Web
Serverless Application Developers: Our Tech Talent, Your Success
DevOps
Kubernetes backup with Heptio Ark (Velero)
Other
GDPR: Smart Practices
Web,Outsourcing,Other
Angular 5.0.0 – A Better Version of Itself
DevOps
What to Choose: NFS or CEPH?
Outsourcing,Amazon Web Services
FUNKTIONEN VON AWS LAMBDA DEBUGGEN
Web,Other
SSR or CSR for Progressive Web App
Outsourcing,Testing
Die Rolle des QS-Teams in Software-Projekten
DevOps
DEBUGGING AWS LAMBDA FUNCTIONS
Web,Mobile,Back-end,Amazon Web Services
Serverless Architecture for Modern Apps: Stacks Providers & Caveats
DevOps,Outsourcing,Amazon Web Services
Information Security with AWS DevOps
Our cases,Amazon Web Services
CLOUD SOLUTION VS. BARE METAL SERVER: WHEN AND WHY
Other
Swimming with Sharks
Web,Outsourcing,Other
JS Frameworks: The Trendiest Frameworks You Should Know
Web
Web App Security 101: How to Defend Against a Brute Force Attack
Web
K&C insights: how to make your workflow work for you
Web
A secret formula of an agile dream team
Other
Don’t Treat Me Like a Fool: The worst thing you can do for your business
Web
Microservices… when do we need them?
DevOps
Security in Kubernetes and How Your Company Can Benefit from It
DevOps,Outsourcing
AWS DevOps: A New Way to Run Business
Web,Outsourcing,Other
Golang vs. Node.js
DevOps
DevOps with Puppet: Tips on Setting it up for Configuring Servers
Web
Technologies that Foster Digital Transformation
Web,Amazon Web Services
Vue.js 2019 - not Angular / React
DevOps,Outsourcing
Rancher 2.0: A Quick Look at the New Version
DevOps
How We Manage Our Infrastructure with Chef
Web
4 Time-Saving Ways to Test Your Cross Platform Mobile App
Web,Outsourcing,Other
How a Company Can Benefit from White Label: K&C experience
Web,Outsourcing,Testing
Sicherheit für Web-Anwendungen - dank Threat Modeling
Web,Outsourcing,Testing
QA for CxOs: How to Hire and Outsource
Web,Mobile,Outsourcing,Other
All You Wanted to Know About Chatbot Platforms
Testing
What Is Quality Assurance and Why You Need It Immediately
DevOps
How to setup Kubernetes cluster on AWS
Web,Our cases
White Label: A Customized Software Solution from a Business and Tech Perspective
Testing
Agile Test Coach - Ensuring Code Quality & Transparency
DevOps
Use case: how to build and run Docker containers with NVIDIA GPUs
DevOps,Outsourcing,Other
ROCKET.CHAT as an internal messaging system and helpdesk platform
DevOps
DevOps As DevSecOps – Full Integration of Threat Protection Without Compromising Deadlines or Budgets
Web,Other
Dedicated Teams for Web Development: Choice Criteria to be Checked
DevOps
Docker: Virtualize Your Development Environment Right
Outsourcing,Testing
How the QA Team Tests Your Project
Web,Amazon Web Services
CLOUD DEPLOYMENT: YOUR APPLICATION’S OPTIONS
Web
Plan to Succeed: 4 Tips for Building Scalable Software
Other
I’m Tired of Blockchain Hype, Are You?
Web
Centralized Logging with Logstash, Elasticsearch & Kibana
DevOps
How to start services on Linux
Web,Other
GoLang: Features, Pros and Cons
Web,Amazon Web Services
ANGULAR 7 OR REACT For Your App?
Web,Outsourcing
Angular 6 Will Be A Hit
DevOps
How to Build a Rancher & Docker Based Cloud
DevOps
How We Use Ansіble for Configuration of Our Environments
Web,Outsourcing,Other
JavaScript & WebSockets: How to Build Real-Time Applications
DevOps
Guide for Hashicorp Consul/Vault with Kubernetes
Web
A Guidance for Keeping Your Web Development Project Within the Budget: Three Key Pillars
Web
All You Need to Know About Web App Security Now
Outsourcing,Other
How to Ramp up Your Team Wisely
Web
Node.js 10.0.0: Everyone’s Favorite Got Even Better
Other
Angular vs. Vue vs. jQuery vs. React vs. Ember
Web,Outsourcing
Node.js vs. Angular.js – Two Sides of the Same Coin
Web
Agile and DevOps are Key Drivers of Digital Transformation
Mobile
Native or Hybrid Apps: A Quick Comparison
Web,Amazon Web Services
Single Page Application SEO: Tips & Tricks
Web,Outsourcing
Angular 6 vs. Ember 3