TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Best language for micro services for a startup

2 点作者 skar将近 10 年前
I&#x27;m in a startup and we&#x27;re looking for the right language to build our micro services. Our Android&#x2F;iOs mobile apps and our website are accessing our database using their own respective PHP backends. We&#x27;re working on building a set of services which&#x27;ll serve as a common backend for all these. Our team has 15 odd developers ranging from newbies to people with 7 years of experience. Look at the linked google spreadsheet where I&#x27;ve jotted down certain options that I could. What&#x27;s your suggestion?<p>https:&#x2F;&#x2F;docs.google.com&#x2F;spreadsheets&#x2F;d&#x2F;1vfP9lF5Xeeov6_aRriDW2IyNZMcUKqQGxgqu5sn0Rks&#x2F;edit#gid=0

5 条评论

anonyfox将近 10 年前
Elixir (or plain Erlang) by far. <a href="http:&#x2F;&#x2F;blog.plataformatec.com.br&#x2F;2015&#x2F;06&#x2F;elixir-in-times-of-microservices&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blog.plataformatec.com.br&#x2F;2015&#x2F;06&#x2F;elixir-in-times-of-...</a><p><i>Edit</i><p>A few more reasons:<p>- Elixir&#x2F;Phoenix outperforms quite everything for some usecases <a href="https:&#x2F;&#x2F;twitter.com&#x2F;julianobs&#x2F;status&#x2F;614416512825323520" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;julianobs&#x2F;status&#x2F;614416512825323520</a><p>- Elixir Code is well suited for longer maintenance modes <a href="http:&#x2F;&#x2F;blog.plague-dev.de&#x2F;posts&#x2F;Maintainable-Code-in-Elixir" rel="nofollow">http:&#x2F;&#x2F;blog.plague-dev.de&#x2F;posts&#x2F;Maintainable-Code-in-Elixir</a><p>- Elixir unions the advantages of monolithic apps and microservices and is <i>very</i> easy to scale <a href="http:&#x2F;&#x2F;blog.erlware.org&#x2F;monolith-vs-microservices-where-to-start&#x2F;" rel="nofollow">http:&#x2F;&#x2F;blog.erlware.org&#x2F;monolith-vs-microservices-where-to-s...</a>
评论 #9825865 未加载
eicnix将近 10 年前
IMHO: Scala by far<p>- You can use pretty much any JVM library<p>- You can execute Scala applications in a JVM which is a pretty common platform for other tools. Think CI, deployment on servers, etc.<p>- Akka Cluster out of the box. On other systems you have to build your custom communication pipelines for messaging between your multiple instances of the services
kasey_junk将近 10 年前
Every single thing in your spreadsheet is impossible to objectively measure (I&#x27;d argue your Java row is laughably incorrect for instance).<p>From a business perspective picking a language just isn&#x27;t that important, it will <i>NOT</i> be the thing that makes you (un)successful.<p>So I&#x27;d go the other way, what language do the most people want to work on and has the least &quot;I&#x27;ll quit if we pick that&quot; factor? Just use that.
tedyoung将近 10 年前
One of the big advantages of &quot;micro-services&quot; is that for each individual service, you can pick the best language suited for that service. If you&#x27;re going to pick a single language (and I agree with kasey_junk on which to pick), then just make a single service, in one language, and split it when you need the isolation or differences in scaling each piece.
olalonde将近 10 年前
Why not keep using PHP and experiment with new languages on smaller and less critical services?
评论 #9824699 未加载