Improving Performance and Build Time in Java Web Apps with Externalized Localized Strings
The article discusses a technique to improve performance and reduce build time in Java web apps by externalizing localized strings outside the app. The author explains that in a localized web app, the text files containing translations can make up a significant portion of the app's size. By placing these translations in a separate folder outside the app, the app can read the files at deployment time, reducing the app's size and build time. The author shares the steps to make it work, including using JSF (JavaServer Faces) and a SessionScoped bean to load the translations from the external folder. The article highlights the benefits of this approach, such as a smaller app size and easier maintenance and extension of the app. Developers looking to optimize performance and build time in their Java web apps can benefit from implementing this technique.