Posts

  • For Those Who Left, and Those Who Stayed: Living With Layoff Uncertainty in Tech

    Recently, some people I’ve worked alongside, and care about, lost their jobs. Since then I’ve been thinking about what I’d want to say to them, and to those of us who are still here.

    First, where I’m standing. These are my own views, not my employer’s. I won’t go into what happened or argue about whether it was the right call. I’m also writing as someone who still has a job, and as a manager. I know that could colour how this piece reads, so take what’s useful and leave the rest.

    Here’s where I’ve landed. Layoffs are now part of working in tech, in good years as well as bad. We can’t make that uncertainty go away. But we can prepare for it before it arrives, stop and recover when it does, choose our next step deliberately, and look after each other along the way.

    Read more...

  • Prototype-scoped Bean Instance in Spring

    Spring Framework supports quite a few different types of bean scopes. Singleton and Prototype scoped beans are the most used ones. It is common for Spring framework-based applications to use singleton scoped beans, but sometimes, there may be a need to use a prototype scoped bean. In this post, I will show how to get an instance of a prototype-scoped bean in Spring Framework.

    Read more...

  • Connection Pooling in the Cloud

    Spring apps are usually deployed to Cloud Foundry with the Java Buildpack (if no explicit buildpack is mentioned, it would be used as the default buildpack for Java apps). The Java buildpack uses its Spring Auto-reconfiguration framework to automatically reconfigure an application to use configured cloud services. It also adds the “cloud” profile as an active Spring profile for the application. This framework has its copy of Spring cloud connectors, which, along with other things, initialises a Pooled datasource with a size of 4 and maxWaitTime of 30,000. This is done to be compatible with cloud providers’ limited free-tier services. This setting is usually sufficient for any test or demo projects. But for any serious application, it is best to customise this per application-needs.

    Read more...

  • My Talk at Web Direction's What Do You Know

    I have been trying to overcome my public speaking fears for a while. So when I saw a call for speakers for Web Directions’ What Do You Know? event, I thought I had to do this. At that time, I was fiddling with my Jekyll blog quite a lot. So I shot a proposal to Jhon Allsopp about this, and he agreed.

    Read more...