What is Network Load Balancer (NLB)?
Network Load Balancer works in Layer 4 and is best fit for business-critical and interactive workloads that require high throughput and low latency.
-- from IBM Cloud blog
With traditional load balancer, all incoming and returning traffics would go through the load balancer itself. The big disadvantage is the high volume of traffics will increase the latency and affect the throughput.
NLB is using a technology called Direct Server Return (DSR). The information processed by the backend targets is sent directly back to the client, thus minimizing latency and optimizing throughput performance.
-- from IBM Cloud blog
Java SDK
This Java SDK is a new tool for developer to manage their IBM Cloud VPC resources. If you are new to Java and need to use the Java SDK to manage your NLB on IBM Cloud VPC, this doc can help you to get start.
Import the VPC libaries:
Create VPC service object and authenticate:
GET Profile:
GET Load Balancer:
GET Load Balancer Listener:
GET Load Balancer Pool:
GET Load Balancer Pool Member:
GET Load Balancer Statistics:
GET Load Balancer Statistics:
CREATE Load Balancer:
CREATE Load Balancer Listener:
CREATE Load Balancer Pool:
CREATE Load Balancer Pool Member:
CREATE Load Balancer Listener With Pool:
CREATE Load Balancer Pool With Member:
UPDATE Load Balancer:
UPDATE Load Balancer Listener:
UPDATE Load Balancer Pool:
UPDATE Load Balancer Member:
PUT Application LoadBalancer Member:
DELETE Load Balancer:
DELETE Load Balancer Listener:
DELETE Load Balancer Pool:
DELETE Load Balancer Pool Member:
Some references:
Doc: https://ibm.github.io/vpc-java-sdk/docs/latest/
Source: https://github.com/IBM/vpc-java-sdk
No comments:
Post a Comment