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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Trapperkeeper is a new Clojure framework for long-running applications, services

229 点作者 lazyloop大约 11 年前

14 条评论

mwcampbell大约 11 年前
Perhaps I&#x27;ve drunk too much of the Unix and Heroku 12-factor kool-aid, but I&#x27;m skeptical of the usefulness of some of TrapperKeeper&#x27;s features:<p>&gt; a way to cohesively manage the lifecycle of the various components making up an application<p>I&#x27;d need a more specific example to understand exactly what this is talking about, but shouldn&#x27;t each component with an independent life cycle be a Unix process?<p>&gt; a common logging mechanism that wouldn&#x27;t need to be set up and configured by each component<p>Just log to stderr. Don&#x27;t even bother including timestamps; an external utility like svlogd can do that (and rotate the logs too).<p>&gt; a web server flexible enough to load multiple web apps<p>This one in particular strikes me as an anti-feature, common in JVM environments. In the Heroku 12-factor approach, each app embeds a web server (like Jetty), rather than the web server containing apps. Then you use a front-end proxy like HAProxy or nginx to route requests to multiple apps.<p>&gt; and to support a rich set of options for configuring SSL<p>That&#x27;s the job of the front-end proxy, or maybe even a special-purpose SSL termination daemon such as stud.
评论 #7583033 未加载
评论 #7582815 未加载
评论 #7582869 未加载
评论 #7584816 未加载
评论 #7587306 未加载
sharms大约 11 年前
This is very cool, especially that they took the time to write up a series of tutorials for &quot;TrapperKeeper&quot; which is really what the post is announcing: <a href="https://github.com/puppetlabs/trapperkeeper" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;puppetlabs&#x2F;trapperkeeper</a><p>It looks very quick and easy to spin up a service which has all benefits and performance of running on clojure &#x2F; jvm. Combining this with a website front end using Clojurescript looks like it could be a sweet spot.
SmileyKeith大约 11 年前
I&#x27;ve been looking at Clojure a lot lately. It&#x27;s a really cool looking language that appears pretty powerful. As an outsider I&#x27;d really like to see some more &quot;ramping up&quot; kind of posts to get my head around all the basics of the tooling (leiningen) and how to actually structure a program.
评论 #7581773 未加载
评论 #7581758 未加载
评论 #7581956 未加载
评论 #7582636 未加载
评论 #7581960 未加载
gmjosack大约 11 年前
I&#x27;ve also released an opensource tool called TrapperKeeper which is for storing and displaying SNMP traps. We use it at Dropbox to turn SNMP traps into stateful alerts so that they can be polled by monitoring services. We haven&#x27;t really announced it publicly because I want to finish writing up docs but it&#x27;s been public on Github for about a month.<p><a href="https://github.com/dropbox/trapperkeeper" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dropbox&#x2F;trapperkeeper</a>
评论 #7583361 未加载
评论 #7581953 未加载
Luyt大约 11 年前
A talk by Rich Hickey (creator of Clojure) about what sets Clojure apart from the usual object oriented languages, concurrency-wise: <a href="http://www.infoq.com/presentations/Are-We-There-Yet-Rich-Hickey" rel="nofollow">http:&#x2F;&#x2F;www.infoq.com&#x2F;presentations&#x2F;Are-We-There-Yet-Rich-Hic...</a>
neverminder大约 11 年前
I&#x27;ve tried Clojure for a while, but it didn&#x27;t stick. It&#x27;s probably the whole Lisp specific approach being the reason why Lisp never really took off as a main stream language. I&#x27;ve tried Scala after that and stayed with it since. Besides all the good points, Scala has Typesafe behind it - a solid stack&#x2F;platform that (to best of my knowledge) Clojure doesn&#x27;t have.
评论 #7581594 未加载
评论 #7581592 未加载
评论 #7581787 未加载
ams6110大约 11 年前
Trapper Keeper is a long-established brand name for a type of loose-leaf binder. I might expect a challenge on the name by Mead.
评论 #7581710 未加载
评论 #7582549 未加载
joaomsa大约 11 年前
Because of all the great benefits of centralized accounting of our infrastructure and exported resources we started using PuppetDB when it was in its relative infancy. We did make the mistake early on of using the built in DB backend instead of the Postgres.<p>When I looked at migration strategies there wasn&#x27;t a real migration tool available. To interact with PuppetDB I ended up learing a bit of clojure and rollng my own tool, the built in REPL helped wonders with this (granted it was only enough to accomplish this task and haven&#x27;t had a chance to touch Closure since).<p>Only kept getting irritated by the startup time which I don&#x27;t know if it can be attributed to the JVM, Closure or PuppetDB itself.
codeonfire大约 11 年前
Does anyone else see dedication to a single language as a flaw? When I read &quot;X is a Y language company&quot; all I can think is &quot;that company has a long ways to go.&quot; I imagine the people or person there, having found their favorite pet language and some political energy, forcing it upon everyone else and I feel angry. I get recruiter emails &quot;looking for a Java developer&quot; and have to ignore them. The companies just don&#x27;t get it. Language Y is not going to fit all needs and cases except for very, very small problems. A company dedicated to one language is like a Popsicle with dirt all over it.
评论 #7581851 未加载
评论 #7581859 未加载
评论 #7582779 未加载
评论 #7582272 未加载
walterheck大约 11 年前
As a clojure-n00b and a Puppet expert (ahum), this triggered me to do a bit of research and write down my thoughts: <a href="http://www.olindata.com/blog/2014/04/clojure-outsiders-investigation" rel="nofollow">http:&#x2F;&#x2F;www.olindata.com&#x2F;blog&#x2F;2014&#x2F;04&#x2F;clojure-outsiders-inves...</a>
midas007大约 11 年前
Not a big shocker. Last time I spoke with Luke, he mentioned client agents (facter, puppet) might eventually need to be non-Ruby compiled binaries.
rch大约 11 年前
I&#x27;m still trying to figure out how to allocate my attention between Clojure and Scala, and this just rebalanced the situation (I had been leaning toward the latter).<p>I do question their conclusions about OSGi though - it seems like a good fit for their case despite the complexity. Apache Felix is particularly nice to work with.
评论 #7585038 未加载
estebanrules大约 11 年前
Maybe I&#x27;ll actually use Puppet now. Very cool news.
mrmondo大约 11 年前
This is very disappointing.<p>Given how often 0-day vulnerabilities are discovered in the Java ecosystem I can&#x27;t see how this is a good choice for a critical piece of infrastructure.<p>We love using puppet, but one big issue we have is it&#x27;s lack of consistency, a big part of that is the fact that theres Puppet, Ruby, ERB syntax and ideologies and now you also have thrown Java in the mix?!<p>When we saw this news several people in our team have already started looking at alternatives.
评论 #7583531 未加载
评论 #7587241 未加载