{"id":1510,"date":"2018-08-01T14:52:48","date_gmt":"2018-08-01T13:52:48","guid":{"rendered":"https:\/\/www.lightsoftai.com\/?page_id=1510"},"modified":"2018-08-03T12:30:21","modified_gmt":"2018-08-03T11:30:21","slug":"loadbalancer","status":"publish","type":"page","link":"https:\/\/www.lightsoftai.com\/?page_id=1510","title":{"rendered":"Loadbalance with failover protection"},"content":{"rendered":"\n<p>Your company have been using services on a single server. And now it has come to a point, where you need to have multiple services, and even maybe introduce HTTPS but don&#8217;t own a certificate.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/an-introduction-to-haproxy-and-load-balancing-concepts\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"210\" src=\"https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/web_server.png\" alt=\"\" class=\"wp-image-1535\" srcset=\"https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/web_server.png 690w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/web_server-300x91.png 300w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/web_server-230x70.png 230w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/web_server-350x107.png 350w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/web_server-480x146.png 480w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/a><figcaption>Are your solution made like this?<\/figcaption><\/figure>\n<\/div>\n\n<p>\u00c2\u00a0<\/p>\n<p>When the demand on services are increasing, the possibility to expand the servers also arise. By distribute the traffic internally is sometimes costly for small\/medium companies. Hardware is expensive and not all is supporting the external communication of encryption with HTTPS without a certificate and still use the unencrypted traffic internally.<\/p>\n<p>By using 2 loadbalancers, a primary and secondary (as a backup if primary stops working), they will handle frontend requests and pass them to backend servers, with either sticky sessions so that same client will use same backendsystem, or roundrobing.<br \/>Loadbalancer will also hold responsible for HTTPS Certificate and decrypt and pass the request to backends.<\/p>\n\n\n<div class=\"wp-block-columns has-2-columns is-layout-flex wp-container-core-columns-is-layout-9d6595d7 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<ul class=\"wp-block-list\"><li>High availability (HA) to remove single point of failier with\u00c2\u00a0redundant loadbalancer<\/li><li>Health Check of backends in case server goes down<\/li><li>HTTPS Certificate support and free with <a href=\"https:\/\/letsencrypt.org\/\">Let&#8217;s Encrypt<\/a><\/li><li>Statistics of incoming traffic and status of backends<\/li><li>Possible to change load balancing depending of your need<\/li><li>Not as expensive as bigger Loadbalance solutions tends to be.<\/li><\/ul>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"4608\" height=\"2592\" src=\"https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/IMG_20180724_164146.jpg\" alt=\"\" class=\"wp-image-1522\" srcset=\"https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/IMG_20180724_164146.jpg 4608w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/IMG_20180724_164146-300x169.jpg 300w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/IMG_20180724_164146-768x432.jpg 768w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/IMG_20180724_164146-1024x576.jpg 1024w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/IMG_20180724_164146-830x467.jpg 830w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/IMG_20180724_164146-230x129.jpg 230w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/IMG_20180724_164146-350x197.jpg 350w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/IMG_20180724_164146-480x270.jpg 480w\" sizes=\"auto, (max-width: 4608px) 100vw, 4608px\" \/><figcaption>Even if small, it can handle large amount of traffic<br\/><br\/><\/figcaption><\/figure>\n<\/div>\n<\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"390\" src=\"https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/haproxy-status-page-768x390.png\" alt=\"\" class=\"wp-image-1526\" srcset=\"https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/haproxy-status-page-768x390.png 768w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/haproxy-status-page-300x152.png 300w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/haproxy-status-page-1024x520.png 1024w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/haproxy-status-page-830x421.png 830w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/haproxy-status-page-230x117.png 230w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/haproxy-status-page-350x178.png 350w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/haproxy-status-page-480x244.png 480w, https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/haproxy-status-page.png 1058w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><figcaption>Loadbalancer will give an statistics report of your systems and backend<br\/><br\/><\/figcaption><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter is-resized\"><a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/an-introduction-to-haproxy-and-load-balancing-concepts\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lightsoftai.com\/_lightsoft\/wp-content\/uploads\/2018\/08\/ha-diagram-animated.gif\" alt=\"\" class=\"wp-image-1525\" width=\"900\" height=\"433\"\/><\/a><figcaption>The behaviour of Loadbalancer and failover<a href=\"https:\/\/www.digitalocean.com\/community\/tutorials\/an-introduction-to-haproxy-and-load-balancing-concepts\"><\/a><\/figcaption><\/figure>\n<\/div>\n\n\n<p style=\"text-align:center\" class=\"has-background has-very-dark-gray-color has-pale-cyan-blue-background-color\">We build and configure loadbalancer for your need<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your company have been using services on a single server. And now it has come to a point, where you need to have multiple services, and even maybe introduce HTTPS but don&#8217;t own a certificate. \u00c2\u00a0 When the demand on services are increasing, the possibility to expand the servers also arise. By distribute the traffic [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1342,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/page_fullwidth.php","meta":{"footnotes":""},"class_list":["post-1510","page","type-page","status-publish","has-post-thumbnail","hentry"],"_links":{"self":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/pages\/1510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1510"}],"version-history":[{"count":59,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/pages\/1510\/revisions"}],"predecessor-version":[{"id":1677,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/pages\/1510\/revisions\/1677"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=\/wp\/v2\/media\/1342"}],"wp:attachment":[{"href":"https:\/\/www.lightsoftai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}