microrpc

A simple and efficient RPC library.

Лицензия

Лицензия

Группа

Группа

eu.toolchain.microrpc
Идентификатор

Идентификатор

microrpc
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

microrpc
A simple and efficient RPC library.
Ссылка на сайт

Ссылка на сайт

https://github.com/udoprog/microrpc-java
Система контроля версий

Система контроля версий

https://github.com/udoprog/microrpc-java

Скачать microrpc

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/eu.toolchain.microrpc/microrpc/ -->
<dependency>
    <groupId>eu.toolchain.microrpc</groupId>
    <artifactId>microrpc</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/eu.toolchain.microrpc/microrpc/
implementation 'eu.toolchain.microrpc:microrpc:1.0.1'
// https://jarcasting.com/artifacts/eu.toolchain.microrpc/microrpc/
implementation ("eu.toolchain.microrpc:microrpc:1.0.1")
'eu.toolchain.microrpc:microrpc:jar:1.0.1'
<dependency org="eu.toolchain.microrpc" name="microrpc" rev="1.0.1">
  <artifact name="microrpc" type="jar" />
</dependency>
@Grapes(
@Grab(group='eu.toolchain.microrpc', module='microrpc', version='1.0.1')
)
libraryDependencies += "eu.toolchain.microrpc" % "microrpc" % "1.0.1"
[eu.toolchain.microrpc/microrpc "1.0.1"]

Зависимости

compile (5)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.7
eu.toolchain.serializer : tiny-serializer-core jar 1.0.0
eu.toolchain.async : tiny-async-core jar 1.0.1
io.netty : netty-all jar 4.1.0.Beta3
com.google.guava : guava jar 18.0

provided (1)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.12.6

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.11
org.mockito : mockito-core jar 1.9.5

Модули Проекта

Данный проект не имеет модулей.

MicroRPC

An efficient RPC framework built on top of Netty.

  • Supports connection pooling and retrying of requests.
  • Uses TinySerializer for efficient serialization completely under your control
  • Uses TinyAsync for expressive asynchronous operations, which adds transparency from the client to the server.

#Setup

Add microrpc as a dependency to your project.

<dependency>
  <groupId>eu.toolchain.microrpc</groupId>
  <artifactId>microrpc</artifactId>
  <version>CHANGEME</version>
</dependency>

Usage

MicroRPC uses an instance of MicroServer to maintain both outgoing connections, and a local server.

Connections are established by calling MicroServer#connect(URI), which returns a MicroConnection instance.

This instance will be usable until you call MicroConnection#close().

Requests are sent using AsyncFuture<T> MicroConnection#request(String, Serializer<T>, ...) methods, which expect you to provide a serializer for the request body, and the result body.

The returned AsyncFuture will be resolved, failed, or cancelled at the frameworks discretion and you should take appropriate action to handle these situations.

For a complete example on how to use this framework, see Server and client example

Версии библиотеки

Версия
1.0.1
1.0.0