#tesla-microservice
This is the common basis for some of otto.de's microservices. It is written in clojure using the component framework.
- Load configuration from filesystem.
- Aggregate a status and application health.
- Deliver a json status report.
- Report to graphite using the metrics library.
- Manage routes using compojure.
- Serve content with an embedded jetty.
The basis included is stripped to the very minimum. More features like access to mongodb, redis, zookeeper, etc. will be released at a later time as separate addons.
Add this tpo your project dependencies:
[de.otto/tesla-microservice "0.1.6"]
See the included example on how to use it.
Clone the repo. Start the example microservice with
$ lein run
Access the example service under http://localhost:8080/example
and http://localhost:8080/example/foo
.
Access the status report under http://localhost:8080/status
.
The calculator used for uppercasing is a volume-licensed enterprise software. So you will notice, that after the uppercasing of 10 Strings, the status of the calculator and consequently the whole application will change from OK to WARNING.
Q: Is it any good? A: Yes.
Q: Why tesla? A: It's a reference to the ingenious scientist and inventor.
- extend documentation
- add one or the other test
Christian Stamm, Felix Bechstein, Ralf Sigmund, Kai Brandes, Florian Weyandt
Apache License