There are various parameters for landing upon a particular set of technology for web applications. Time constraints, client preferences, ready made pluggins in the project domain, existing competitors technology preferences and their experience,our preferences and experience are a few of them.
If using some framework or technology is must for a project and if we don't have the expertise in it, we invest time and money to learn it and make sure we use the best available technology for the current project.
We maintain a technology battlefield, which is the list of technologies that we think are going to be dominant in near term. We heavily invest in mastering those.
What do we offer for web applications ?
We love Golang, every bit of it. And we are one of the early adopters of Golang for web applications as well. Till date (Feb 2015), we have written in all 5 web applications in Golang and using different frameworks.
There are many advantages of using Golang over other languages for writing web applications.
Experiences of IronWorker of using Golang over Ruby on Rails
When the team built the first version of IronWorker, about 3 years ago, it was written in Ruby and the API was built on Rails. It didn’t take long for us to start getting some pretty heavy load and we quickly reached the limits of our Ruby setup. Long story short, we switched to Go. For the long story, keep reading, here's how things went down. - Iron.io (source)
And yes they have talked about some of the issues as well -
I can confidently say that after two years working with Go, we made the right choice. If we had started Iron.io today, it would have been a no brainer to choose it. A lot of other companies are using it now too including Heroku and Google and the people I talk to about it all have similar opinions. +Rob Pike, one of the creators of Go said: “We realized that the kind of software we build at Google is not always served well by the languages we had available,” Pike said in 2011. “Robert Griesemer, Ken Thompson, and myself decided to make a language that would be very good for writing the kinds of programs we write at Google.”
+Derek Collison, the founder of Apcera, said recently in a Wired article: “The management layers and infrastructure layers of the newer technologies that provide this cloud delivery model?” he tells Wired. “Within two years, a majority will be written in Go.” Is Go the next gen language we've been waiting for. It's a bit too early to say, but it's certainly off to a good start. (source)
|Param||Golang||Ruby on Rails|
|Throughput||4691.79 requests/s||88.9 requests/s|
|Memory usage||10MBs||117 MBs|
Go (1.2),Rails (Rails 4, Ruby 2.0, production mode, puma web)
Benchmarks by Matt Aimonetti (source)
- Go compiles very quickly.
- Go supports concurrency at the language level.
- Functions are first class objects in Go.
- Go has garbage collection.
- Strings and maps are built into the language.
We can keep on bragging about, why Golang is right choice for writing next gen web applications. Here is the list of organizations using Golang.
Scala with Play framework
Java 1.8 with Play Framework
Java 1.8 removes most of the reasons, why people shifted onto Scala.
- Lambda Expressions, a new language feature, has been introduced in this release. They enable you to treat functionality as a method argument, or code as data. Lambda expressions let you express instances of single-method interfaces (referred to as functional interfaces) more compactly.
- Method references provide easy-to-read lambda expressions for methods that already have a name.
- Default methods enable new functionality to be added to the interfaces of libraries and ensure binary compatibility with code written for older versions of those interfaces.
- Repeating Annotations provide the ability to apply the same annotation type more than once to the same declaration or type use.
- Type Annotations provide the ability to apply an annotation anywhere a type is used, not just on a declaration. Used with a pluggable type system, this feature enables improved type checking of your code.
- Method parameter reflection.
Improved type inference.
So we also propose going with Java 1.8 and Play framework for the projects that needs to run on JVM.