Posts

Showing posts with the label work

Ballerina Services in Serverless World

Ballerina is a new programming language being developed by WSO2 . Ballerina is optimized for integration and it makes writing HTTP services very easy. I wrote a Medium story about Ballerina Services in Serverless World , which discusses how you can deploy your own Ballerina Service as a serverless function in AWS Lambda .

Benchmarking Java Locks with Counters

Image
These days I am analyzing some Java Flight Recordings from taken from WSO2 API Manager performance tests and I found out that main processing threads were in "BLOCKED" state in some situations. The threads were mainly blocked due to "synchronized" methods in Java. Synchronizing the methods in a critical section of request processing causes bottlenecks and it has an impact on the throughput and overall latency. Then I was thinking whether we could avoid synchronizing the whole method. The main problem with synchronized is that only one thread can run that critical section. When it comes to consumer/producer scenarios, we may need to give read access to data in some threads and write access to a thread to edit data exclusively. Java provides ReadWriteLock for these kinds of scenarios. Java 8 provides another kind of lock named StampedLock . The StampedLock provides an alternative way to the standard  ReadWriteLock  and it also supports optimistic...

WSO2 Stratos 2.0 Foundation is Released!

We are happy to announce that WSO2 Stratos 2.0 Foundation General Availability (GA) is released!!! Nothing much changed from the RC2 release. Please refer my previous post for more details about Stratos 2.0 and here is link to release note mail! We updated our Amazon EC2 images with Stratos 2.0 GA release and you can find more details in our  Quick Start Guide  wiki page. Visit our Stratos wiki page for more information:  http://docs.wso2.org/wiki/display/Stratos200/WSO2+Stratos+Documentation

WSO2 Stratos 2.0 Foundation - RC2 Released!

Today we released WSO2 Stratos 2.0 Foundation Release Candidate 2, which will be the final release candidate of the upcoming Stratos 2.0 GA. WSO2 Stratos 2.0 is the next major version of WSO2 Stratos 1.x, the most complete, enterprise-grade, open PaaS, with support for more core services than any other available PaaS today. This release also comes with a very easy to configure demo setup that can be run on Amazon EC2 and you can find more details in our  Quick Start Guide  wiki page. Following are the Key features available in Stratos 2.0. Key Features Artifact Distribution Coordinator (ADC) with support for external Git and GitHub repositories. Plug-able architecture support for adding new cartridges Support for PHP, Tomcat and MySQL and WSO2 Carbon cartridges (AS, ESB, BPS etc.) Support for puppet based cartridge creation for WSO2 Carbon cartridges Elastic Load Balancer (ELB) with Cartridge support Multiple IaaS support (EC2,...

Filling the gap!!

So, my last blog post is back in 2009!! So many things happened in my life last few years. Here are some highlights: 2010 July, 2010: Moved to Habarakada, Sri Lanka. It was not easy moving to a whole new place after living for more than 2 decades in the same place, which used to call "Home"! September 2010: Started using Windows 7 for the first time at office! October, 2010: Participated to APICTA 2010 Malaysia with my manager. The InfoTrack product we presented there won the Gold Award at NBQSA 2010 in the commercial R&D category and won Silver overall. December, 2010: Bought Sony Ericsson Vivaz! My first smartphone! 2011 April, 2011: Sri Lanka lost in ICC World cup 2011 final. It was a very sad day! July, 2011: I was offered Associate Tech Lead position at Informatics International Limited October, 2011: Graduated with First Class Honors in BSc (Hons) Software Engineering from the Informatics Institute of Technology, Sri Lanka whic...

Vacation!

Image
I have been waiting for almost 2 years to create a blog.. and finally my dream came true.. Yes! it's vacation! I had so many plans after I completed the exam in June. I was bit scared about the exam as I couldn't try my best at the exam. I got my results this month and I'm happy about my marks. One of my plans was to create my own blog.. I'm very much inspired by some of my friends' blogs and I wanted my own blog badly. Actually, I'm writing this post after 19 days creating this blog. I didn't get much "free time" as expected. These days I'm very busy with my office work. Sometimes, I fed up with programming, as I'm staring at the monitor 10 hours per day! But I enjoy what I'm doing. These days we're developing a web application using ICEfaces , Spring and Websphere eXtreme Scale . Working with new technology is always very interesting. But I'm exhausted..... Best thing happened in this vacation was our batch trip. We all went ...