WebSocket Client API in Java EE 7

java-interview-questions-answers

In this post, let’s explore the less talked about Web Socket Client API and how to leverage it within a Java EE 7 container itself. Web Socket Server API rules The server side API of JSR 356 (Web Socket API for Java) is most commonly used for building Web Socket endpoint implementations. More often than not, from a client perspective, ...

Read More »

Using Hibernate Bean Validator in Java SE

The main Bean Validation page states that “Bean Validation is a Java specification which … runs in Java SE but is integrated in Java EE (6 and 7).” This post demonstrates using Java Bean Validation reference implementation (Hibernate Validator) outside of a Java EE container. The examples in this post are based on Hibernate Validator 5.1.3 Final, which can be ...

Read More »

How To Make The Most Of Failure

I was asked a hypothetical question: If someone caused a major failure to the business, would that be a reason to fire her. I said no, because:               It is unlikely that a single individual can actually be the only accountable person in such a scenario. If the error wasn’t malicious, that makes the failure a ...

Read More »

Building a Scalable and Resilient Architecture

This article is a summery of my DevoxxUK talk about microservices. Like many startups before us, Wix.com started as a monolith application, which was the best architectural solution when we had no scalability and availability concerns. But as time went by and our small startup grew and gained success, it was time to change the architecture from a monolith—which experienced ...

Read More »

Iterative or Incremental?

Hopefully most of my readers have noticed by now that I regularly stray from the Agile Gospel, or rather, I have a tendency to go against the common form of Agile. (And if you haven’t noticed you probably haven’t read My warped, crazy, wrong version of Agile post and its philosophical successor, Xanpan.) Today I want to take issue with ...

Read More »

CQRS and Event Sourcing for dummies

CQRS (Command and Query Responsibility Segregation) and Event Sourcing are concepts that are not new at all. Alongside NoSql, Functional Programming and Microservices, these revival concepts are getting traction because of their ability to deal with modern software challenges. Assuming that you’re building a product that has a complex domain with a significant amount of users I can predict that ...

Read More »

How to Develop a Highly Customizable Product

Have you ever heard: ‘We really like your product…except for a few minor details.’? And then the CIO rolls out a list of additional ‘must have’ requirements, hundreds of them, to add to your amazing product. Have you ever heard, or even said: ‘Team, we are about to sign up a highly-profitable contract but…’? And then the customer’s wish list ...

Read More »

R: Bootstrap confidence intervals

I recently came across an interesting post on Julia Evans’ blog showing how to generate a bigger set of data points by sampling the small set of data points that we actually have using bootstrapping. Julia’s examples are all in Python so I thought it’d be a fun exercise to translate them into R. We’re doing the bootstrapping to simulate ...

Read More »

JVM Buzzwords Java developers should understand

This article will share with you a few JVM “buzzwords” that are important for Java developers to understand and remember before performing any JVM performance and garbage collection tuning. A few tips are also provided including some high level performance tuning best practices at the end of the article. Further recommendations regarding the Oracle HotSpot concurrent GC collectors such as CMS and G1 ...

Read More »