Linux Bridge and Virtual Networking

Software defined networking (SDN) is the current wave sweeping the networking industry. And one of the key enablers of SDN is virtual networking. While SDN and virtual networking are in vogue these days, the support for virtual networking is not a recent development. And Linux bridge has been the pioneer in this regard.

Using SL4J and SimpleLogger with Servlets

We saw in my previous blog that SLF4J and SimpleLogger support the most critical logging requirements with ease. In this blog, we will see how to use SLF4J in a Servlets based application. The general practice is to initialize logging related objects and parameters at the startup of an application. In case of Servlets, any of the servlet in the Web Application can be invoked due to user action. So we need to use a different technique for initializing logging related objects.

Log API Comparison – Java Logger vs SLF4J

Log statements help record the flow of an application’s execution. Hence they are an important part of software coding process. For the Java language the common Log API libraries are Java Util Logger (commonly known as JUL), Apache Log4J, SLF4J etc. While these libraries support many advanced capabilities, most developers only use a handful of features. For example, ability to send log messages to files and the ability change log levels dynamically etc.

In this blog I will compare JUL against SLF4J and focus on these above mentioned features. Many will argue that this is not a fair comparison since SFL4J is really a facade and supports JUL as well. To clarify, I will compare the SimpleLogger that is bundled with SLF4J against direct JUL usage.

Usability of Social Commenting

One of the biggest differentiation for various social networks is their usability. Let us look at some real world examples of how usability of social commenting can be improved with a simple solution.

Logger statements – the performance impact

Logger statements are among the most heavily used statements in most Java applications. While the code contains Logger statement at different levels, the common practice is to set a default log level for the entire application. This will ensure that only important statements are logged by default. The general understanding is that the statements below the default log level will not be executed and hence there is no impact to performance.

Networking Nuggets – Hub vs Bridge vs Switch

Here is an overview of three basic networking devices - Hub, Bridge and a Switch. This blog and the related YouTube video at the end, will be useful for upcoming topics related to virtual networking such as Linux Bridge and Open vSwitch.