Java

Object Immutability in Java

What are Immutable objects? What is Immutability in general? In this post, I will explain about Immutable objects and Immutability in general, while also highlighting their pros and cons as compared to Mutable objects. NOW, WHAT ARE IMMUTABLE OBJECTS ? Any object whose state can’t be changed once it is created or instantiated is called...

Event processing with Kafka

Kafka and its components Kafka is considered as the next-gen distributed messaging system. It is a very fast, distributed pub-sub messaging system which by design is highly scalable and durable (http://kafka.apache.org/ ). Apache Zookeepers ( http://zookeeper.apache.org/ ) are used for managing Kafka brokers. A Kafka brokers cluster can handle millions of messages. Hence along with...

What is Just In Time (JIT) Compilation ?

In this post, I am going to explain you about Just-In-Time Compiler. Many developers either have no clear understanding or have partial understanding of JIT. Some developers have misconception as well. I will try to explain the logic behind JIT and also try to clear the misconceptions regarding JIT.   WHY DOES JIT EXIST ?...

Comparing Distributed Caching Frameworks

Comparing distributed caching frameworks … Redis, Hazelcast and Memchached!! “Comparing Redis, Hazelcast and Memchached to build a session caching mechanism for our web application using a cache store” would be more precise here! Before putting Redis for use in our production environment finally, we did take a look at two other caching systems. viz. Hazelcast...

Session Caching with Redis

As there is growing need for supporting cross-cluster availability with zero downtime deployment of our application, the need to implement a session caching mechanism which helps us achieve this and other requirements (viz. support clustering without depending on weblogic session replication, better visibility into cache contents for better application performance and management) became evident. With...

Automated Load Testing with Gatling

Gatling is a load testing tool with excellent support for testing out all the HTTP calls in a application. With the latest release there is JMS support as well among many other things. Gatling scripts are written in Scala DSL. Test simulations will simply have to extend “Simulation”. The DSL is built as fluent API...

To Test Or Not To Test – TestNG VS. JUnit

If you are finding it difficult to decide which testing framework to use for your project, this post would help you make the right decision based on the features available in the two frameworks. I have also listed the most common pain points that developers face while writing test cases.   FEATURES Fixtures   Features...

Developing Spring MVC portlets using Liferay 6.2 CE edition

Liferay is an open source Java based portal server. It has built-in support for common portal features like user/organization management, site management, workflow based content management, document management and is extensible via plugins.  This blog will focus on developing Spring MVC portlet plugins using Eclipse/Liferay IDE and Maven. Spring MVC portlet has many advantages over...

Location AutoComplete and Bing Maps in WindowsPhone

Location autocomplete is a nice way of providing real-time location suggestions based on input text by the user. This little feature could be invaluable in a lot of applications. If you want just a location autocomplete textbox, with no map control in your app, I suggest you look at Google Places API. It is astoundingly...

App, up and away – Guidelines for Windows Phone app publishing

App development hasn’t been this easy what with the enormous number of tools available. But we often tend to forget some basic requirements, which might lead to the app being rejected.  So, here are a few guidelines to remember before you look to get your windows phone app published on the Windows Phone Store. 1. Enter the...

Twitter integration with Android app using OAuth

The idea behind this post is to illustrate how to integrate Twitter with an Android app. I have also included a demo where OAuth is used to authenticate the user and send tweets from the Android app. OAuth is open standard used to authenticate and share user resources and information of a site to a...