Rafał Wrzeszcz - Wrzasq.pl

Java+AWS Lambda+Spring - a little less wrong way

Sunday, 07 May 2017, 23:00

FaaS approach is still quite fresh and developers keep comming out with better and better solutions for handling it. One of the leading cloud services providing function applications is AWS Lambda and here I will describe my exprience with it, but I'm pretty sure these clues can apply regardless of provider, which you use. Obviously when a developer face new environment, like this, the easiest way is to try it out with your known technological stack. And no matter how improper it seems to be, you can handle it with Java. And when Java, you will very likely also think of using Spring to help you with it. How? Why? Why not?

Tags: Lambda, Spring, AWS, Cloud, Optimization, Java

» Komentarze

FrontPageFilter - SPA with server side pages in Java

Wednesday, 05 October 2016, 20:38

Time flies, browsers become more and more modern, they are more and more up-to-date. As the common web standards and new frontend technologies are being adopted you can shift more stuff to the client-side. Particularily it means nowadays you can leave most of the frontend part on your JavaScript application shoulders. Thanks to that SPA approach is getting more and more popular. Especially that most search engines and webmaster tools are now able to understand and execute JavaScript code to build full site representation for analysis. With all of these in mind it's an attractive idea to develop your backend application as a pure JSON API (it doesn't have to be pure REST) and handle everything related to presentation layer on a frontend (browser) side. But you still need an application to serve it all from your server(s). Which means your backend application still needs to be a web application.

Tags: Web, Spring, Code, AJAX, ChillDev, Server, Java

» Komentarze

JSON-RPC services with pl.chilldev.commons

Saturday, 16 May 2015, 23:03

Yesterday a new version of pl.chilldev.commons (0.0.3) introduced a completely new component - pl.chilldev.commons:commons-jsonrpc. It is designed to ease building JSON-RPC services. It glues Apache MINA networking library with JSON-RPC 2.0 Base library. Thanks for using MINA, unlike most of the other JSON-RPC libraries, services are using plain TCP layer, without any envelope like HTTP. This gives possibility for making them more robust and efficient - client can use one connection session to interact asynchronously with the server with multiple parallel requests.

Tags: JSON-RPC, Code, Tutorial, ChillDev, Java

» Komentarze

ChillDev-Facelets - various Spring-based Facelets handlers

Wednesday, 12 November 2014, 22:27

Digging more and more into Java and building more and more apps with Spring I began to discover more and more technologies. One of my, probably key, decisions was to use Facelets as a view technology. Seems to be quite simple, but it isn't so - first of all Spring has a very limited integration possibilities for Facelets views; secondly Facelets are based on a different concepts than classic view templating engines like JSP, Velocity etc.; and finally Facelets are strictly designed for JSF framework so some of core features depend on it. But it's not impossible! Basic integration with Facelets is provided by Spring itself by variable resolver class that resolves Facelets variables by using Spring beans. Even better integration is possible by using Spring Web Flow which provides view resolver. What is missing is the integration of many core components, which are available in JSP tags. I began to create taglibs to fill missing gaps.

Tags: XHTML, Web, Forms, Spring, Tutorial, ChillDev, Java, Facelets

» Komentarze

ChillDev-Web - web page model library for Java

Thursday, 12 June 2014, 20:49

Last time I'm trying to migrate more and more towards technologies different than PHP, which I always found primitive and messed-up, but was skilled enought to do some fancy stuff with it. Even though I often play with different technologies and languages, I always liked Java and I'm moving more and more into it with my projects. For me, especially after years of PHP development, the biggest disadvantage is lack of many presentation-related features in JSP layer and MVC frameworks. I've decided to spend sime time trying my skills and reminding myself a bit of Java with creating library for JSP presentation technology that would help managing page meta-data. Basically is an attempt to port ChillDevViewHelpersBundle, my Symfony2 bundle, for Java/Spring.

Tags: XHTML, Web, Spring, SEO, JSP, Tutorial, ChillDev, Java

» Komentarze

ChillDev-Commons Java library

Saturday, 05 April 2014, 15:43

Last time I'm playing more and more with Java. And like always some parts of project I'm working on were absolutely generic. As an enthusiast of technologry and open-source I decided to publish them as ChillDev-Commons - losely coupled general-purpose routines library for Java. There is no particular idea about them, just released those classes that are completely generic and can be used by anyone - maybe they will be helpful. Hopefuly project will grow a little in future.

Tags: Code, Tutorial, ChillDev, Java

» Komentarze