Embedded OrientDB server for dropwizard
DOCUMENTATION https://xvik.github.io/dropwizard-orient-server
About
Embeds OrientDB server into dropwizard.
Simplifies development environment (no need to maintain separate server) without sacrificing functionality (embedded server is 100% the same as usual server). Also, simplifies production deployment and allows to slightly reduce memory consumption on server due to single (shared) vm. To switch application to external server simply switch off embedded server in configuration.
Embedding is officially proposed
Features:
- For orient 3.0 and dropwizard 2.0.0
- Embedded orient server, managed by dropwizard (using Managed object)
- Configuration in main yaml configuration file or with external orient xml configuration file
- Console command (interactive mode, command execution, commands file execution)
- Optional embedded orient studio
- Full support of orient plugins (and enterprise edition)
- SSL configuration helpers
Setup
Releases are published to bintray jcenter (package appear immediately after release) and then to maven central (require few days after release to be published).
Maven:
<dependency>
<groupId>ru.vyarus</groupId>
<artifactId>dropwizard-orient-server</artifactId>
<version>3.0.0</version>
</dependency>
Gradle:
compile 'ru.vyarus:dropwizard-orient-server:3.0.0'
OrientDB | Dropwizard | dropwizard-orient-server |
---|---|---|
3.0 | 2.0.0 | 3.0.0 |
3.0 | 1.3.5 | 2.2.0 |
2.2.17 | 1.1.4 | 2.1.0 |
2.2.0 - 2.2.17 (studio webjar, lucene as plugin) | 1.0 | 1.4.0 |
2.0 - 2.1 | 0.8 - 1.0 | 1.3.0 |
1.0 | 0.8 | 1.1.1 |
1.0 | 0.7 | 1.1.0 |
Snapshots
Snapshots could be used through JitPack:
- Go to JitPack project page
- Select
Commits
section and clickGet it
on commit you want to use (you may need to wait while version builds if no one requested it before) - Follow displayed instruction:
- Add jitpack repository:
maven { url 'https://jitpack.io' }
- Use commit hash as version:
ru.vyarus:dropwizard-orient-server:378ece3c6e
- Add jitpack repository:
Usage
Read documentation
Might also like
- dropwizard-guicey - dropwizard guice integration
- guice-persist-orient - guice integration for orient