This slide deck explores how Ballerina specializes in writing microservices and deploying them into Kubernetes and Istio without having to write YAMLs and dockerfiles.
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
[DeveloperWeek Austin 2019] Microservices in Practice with Ballerina, Kubernetes and Istio
1. Microservices in Practice with Ballerina,
Kubernetes and Istio
November 2019
Lakmal Warusawithana, Senior Director - Cloud Architecture, WSO2
@lakwarus
8. JSON as a native type
json is just a union - () | int | float | string | map<json> | json[]
// JSON object
json payload = { "orderdata": { "id": 1, "name": "XYZ", "price": 2500 } };
//Access object values
json orderid = payload.orderdata.id;
//JSON arrays
json orders = {
"orderdata": [
{ "id": 1, "name": "XYZ", "price": 2500 },
{ "id": 2, "name": "ABC", "price": 3000 }
]
};
9. XML as a native type
// Simple XML literal
xml x1 = xml`<name>Lakmal Warusawithana</name>`;
// XML with namespaces
xmlns "http://wso2.com" as ns0;
xml x2 = xml `<name id="123" status="married">
<ns0:fname>Lakmal</ns0:fname>
<ns0:lname>Warusawithana</ns0:lname>
</name>`;
// XML literal with interpolation
string lastName = "Warusawithana";
xml x3 = xml`<lname>${lastName}</lname>`;
// Concat XML values
xml x4 = x1 + x2 + x3;
19. ● Ballerina helps to write Microservices by providing
network abstraction as first class language constructs
● Ballerina natively understand Cloud Native platforms
like Docker, Kubernetes and Istio.
● Ballerina removes gap between developers and Ops.
● Ballerina and Kubernetes support agile development to
deployment and improve productivity.
Takeaways
20. How to get involved
Learn more
Open source
Get support
http://ballerina.io
http://github.com/ballerina-platform/
Stack Overflow #ballerina tag