asynchronous server using groovy