Ask HN: Is Golang mature enough for FinTech startups?
We would love to get your thoughts on GoLang in 2016. The language has spectacular speed and it is fun to work with but we're wondering whether to brave an entire FinTech site with it. Our backup is Rails. I've noticed that Revel and other frameworks in Go have lost steam, due to React, Angular, and Ember replacing the frond end. But that has its upsides and downsides too. Go and React would make a nice pair, but we may have to reinvent the wheel to protect against many attack vectors that are already taken care of by Rails. Then there is hiring and on-boarding on a less-standard architecture. Yet that speed is so tempting.
Braintree had some objections in 2013: https://www.braintreepayments.com/blog/gotchas-irritants-and-warts-in-go-web-development/
From a functionality standpoint, the site will be processing Stripe and/or Dwolla & Braintree; holding user profiles with private and public views; We'll do CloudFlare, SSL (DigiCert or CF), and Postgres in the back. We'll need to take care of CSRF, injections, user validations, OFAC checking etc. What do you guys think?
If you or someone you know has done GoLang for FinTech, would you be willing to chat?
20 comments
[ 4.2 ms ] story [ 53.5 ms ] threadHaving said that I think I would choose your solution based on your teams skills. If they are comfortable with golang there is no reason it could not be made to work.
But as long as you understand how the table is set and the trade offs I don't think it matters. Golang is going to have less batteries included but it has other advantages too. If it's worth it is really a question of speed of code execution vs speed of writing code.
i can't speak for the first two points, but those seem simple enough to avoid with tests, really. most issues are.
the third issue is something you have to decide on. i'm sure the tooling around go is much better than it was three years ago, but you're not going to have everything in a pretty package like you do rails.
honestly the choice is probably inconsequential, unless you have some actual reason why the language choice matters for your application (which it almost always doesn't).
also if you're in fintech and doing bitcoin, i've heard the node ecosystem has the most BTC support, so that's a consideration
In the domains that golang excels in, it is much more mature than its age. Things like security, memory use, serving network daemons etc. it is great. I would be happy to advocate for it in environments that require a "mature" stack.
But if what you want to do, is rapidly take data from a user and put it into a database, over the internet, I'd say it is a pretty bad choice. Especially if you already have rails experience. Rails is purpose built for that use case and it is (from what i hear) good at it.
Instead of me listing all the nice things about Elixir which you can read about online, feel free to send me an email with any questions regarding usage in production. I've been using it for some time and I'm very happy with it.
[0] http://elixir-lang.org/
[1] http://www.phoenixframework.org/
You may want to look at these benchmarks also:
https://github.com/mroth/phoenix-showdown
https://gist.github.com/omnibs/e5e72b31e6bd25caf39a
Here is a post about using 2 million active websockets connections in Phoenix: http://www.phoenixframework.org/blog/the-road-to-2-million-w...
From my experience, Rails and Phoenix speed isn't comparable. Even in development mode (with code-reloading etc) Phoenix is much faster than a production Rails server. I've also replaced three Node.js servers with one Elixir server which did the same work with less memory and CPU usage, but I'm aware that most rewrites have a similar story, so I won't claim that this is enough proof.
I work for a startup called Mondo - we're building a full-stack bank and currently it's almost entirely in Go. However, this is a function of our architecture - we provide an API which our apps and frontend (some using react) communicate with. Behind this API are >100 microservices which comprise our application, and Go works exceptionally well for this type of architecture, as it excels at network services.
In your case it seems that you're building a web application, so Rails is going to be easier to build out a prototype, hire for, and has taken care of a huge number of your concerns already at a framework level. There is of course nothing stopping you from splitting out functionality later into smaller Go based applications, but I doubt at this point speed of code execution should really be a concern - if you're building a new company you need speed of product execution, no?
Regarding functionality, Go will do everything you're asking for: - CSRF can be handled with middlewares like Gorilla's CSRF package: http://www.gorillatoolkit.org/pkg/csrf - Postgres with the standard database package, or other packages on top - Third party APIs such as Stripe/Dwolla/Braintree will be fine - If you're looking at integrating with other (older) parts of the global financial network (eg. is there an OFAC checking service with a nice API?), then you may find other languages would be easier for these tasks. In our case we may end up abstracting some of these with services in other languages that already have libraries to interact with these systems, and then providing a nice internal API our services can interact with.
So, Rails has a huge number of framework level features which may help you move faster as you develop your product. But, yes, Go is perfect for Fintech applications, we're building a bank and love it.
Particularly look at the orange bars in the graph "Programming Languages" on [1] which is based on data from AngelList.
1: http://codingvc.com/which-technologies-do-startups-use-an-ex...
In the FinTech world most of the developers with deep domain knowledge will know Java/C++.
Of course it really depends on what the OPs startup is trying to do.
In fact even in my city (Cincinnti, OH) there are more Java developers than any other language, but they are mostly in corporate jobs.
So here still there are less Java developers working in startups compared to other languages.
Longer or harder than using Golang? Unlikely.
Golang has some advantages over Java like a simpler deployment model, less runtime overhead, etc but overall for a fairly standard web application it makes much more sense to pick Java over Golang.
> but before then it's premature optimisation in my book.
Then so is using Golang. You have answered your own original question :). Keep using Ruby.
Developer productivity is much higher with Golang.
Having written and maintained a large Rails app from the ground up, and done some small projects in Golang, I think you'll be extremely dissatisfied with all of the extra work you'll find yourself doing, which really takes away from the time of actually getting your product in your users hands.
When coming from Rails, most other options will have speed that is tempting. If it were me and I were in your position and wanted to avoid Rails I'd pick Java/JVM for its speed, ecosystem and its fit in to fintech. But that's me. Or just use Rails and rewrite it in the new shiny if and when performance becomes a problem.
Django and Rails are roughly the same level of maturity.
The approach that's worked best for us is to keep all of the business logic and CRUD-y stuff in this Django base, then spin out dedicated microservices in the special cases e.g. CPU-bound tasks. I think most startups end up with a similar architecture.