May 26, 2015

GO applications and Cloud Foundry

Cloud Foundry is one of many options to host your applications. It is a PaaS originally developed by VMware, now governed by Cloud Foundry Foundation. Not going much into details about where, how and what as those information is publicly available I'll focus here on how to host your GO applications on any Cloud Foundry installation including PCF or PWS.

Jun 12, 2014

SockJS for Go III (yet another take)

It's been a while since the last blog and this is the last in the series of "SockJS-go lessons learned".

May 31, 2013

SockJS for Go II (lessons learned)

It's been a while since implementing SockJS library for Go. Since then I learned couple of new things about the language and runtime. So here I'll try to summarise what it was.

Dec 11, 2012

SockJS for Go

SockJS is a browser JavaScript library that provides a WebSocket-like object. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server. Under the hood SockJS tries to use native WebSockets first. If that fails it can use a variety of browser-specific transport protocols and presents them through WebSocket-like abstractions. SockJS is intended to work for all modern browsers and in environments which don't support WebSocket protcol, for example behind restrictive corporate proxies. What I was missing was a server side support library for GO programing language. So I decided to create one myself.

Sep 16, 2012

GO GET ...

Recently I came across a programming language called GO. At first I was a little skeptical about it, why another language? I spent most of my IT life in Java world, occasionally touching other languages (Ruby, C++, JavaScript, Python, Groovy, Scala, Erlang ...) but GO really got my attention. GO is open source programming language, it is productive, concurrent, garbage-collected and builds fast (really fast) due to simple and effective dependency model. Without going into details about the main features of the language (A Tour of Go is the best place to start) here I want to demonstrate the simplicity of installation and usage.

Jun 29, 2012

BOSH on vSphere (BOSH Deployment)

In the previous post we successfully deployed micro Bosh. But this is just an intermediate step, what we need is a "full" BOSH deployment. In this post we'll go through the steps required to deploy BOSH.

Jun 28, 2012

BOSH on vSphere (micro Bosh)

Recently I spent some time playing with BOSH which is a tool for release engineering, deployment and lifecycle management of large scale distributed services. It is used to manage VMs in AWS and vSphere. The vSphere option seemed to be interesting to me and the idea of having private Cloud Foundry PaaS running locally on private infrastructure was exciting. The BOSH is under heavy development and it's sometimes difficult to make things work easily even if following various tutorials and blogs and I'm very thankful to the authors.

Jun 21, 2012

HTTP Server in Scala and Java 7

HTTP server written in Scala using Asynchronous Socket in Java 7. The server reads entire HTTP header in request and responds back with simple HTML. This by no means is meant to provide complete HTTP protocol implementation. The main purpose is to demonstrate the AIO in Java 7 and simplicity of Scala syntax.

Jul 8, 2011

GAE and security

Recently I came across a problem of integrating spring-security into a project that already handled authentication using very application specific approach and also authorization that was very unique to organization needs. Most of the authorization work was done on presentation layer so that according to certain rules links, buttons and forms became visible or invisible. Of course this approach is not safe enough.