Skip to content

Commit

Permalink
refactor: init more components interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinten10 committed Sep 16, 2021
1 parent 1395d7a commit fb6dcd4
Show file tree
Hide file tree
Showing 13 changed files with 183 additions and 417 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This is the Capa SDK for Java, including the following features:

+ Service Invocation(RPC)
+ Configuration Centor(Configuration)
+ Application Metrics(Metrics)
+ Publish/Subscribe(Pub/Sub)
+ State Management(State)
+ Application Metrics(Metrics)
+
参考项目:

Expand Down Expand Up @@ -43,7 +43,7 @@ API设计和社区保持同步,请参考Dapr/Layotto等开源项目的设计

目前API定义在: [cloud-runtimes](https://github.com/reactivegroup/cloud-runtimes-jvm)

#### [RPC API design]()
#### SDK层次设计

module划分主要为以下几个部分:
* sdk
Expand All @@ -57,6 +57,8 @@ module划分主要为以下几个部分:

在运行前,会将具体的SPI实现包引入进去,作为统一编程API的具体实现。

#### 举例:[RPC API design]()

## Getting Started

#### Importing Capa's Java SDK
Expand All @@ -80,7 +82,7 @@ For a Maven project, add the following to your pom.xml file:
</project>
```


Sample implementation library:

```xml
<project>
Expand All @@ -90,7 +92,7 @@ For a Maven project, add the following to your pom.xml file:
<!-- Capa's core SDK with all features. -->
<dependency>
<groupId>group.rxcloud</groupId>
<artifactId>capa-sdk-spi-aws</artifactId>
<artifactId>capa-sdk-spi-demo</artifactId>
<version>1.0.1.RELEASE</version>
</dependency>
...
Expand All @@ -103,8 +105,9 @@ For a Maven project, add the following to your pom.xml file:

Try the following examples to learn more about Capa's Java SDK:

* [RPC]()
* ...
* [capa-demo](https://github.com/reactivegroup/capa/tree/master/sdk-spi-demo)
* [capa-aws](https://github.com/reactivegroup/capa-aws)
* [capa-alibaba](https://github.com/reactivegroup/capa-alibaba)

#### Reactor API

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package group.rxcloud.capa.component.bindings;

public abstract class InputBinding {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package group.rxcloud.capa.component.bindings;

public abstract class OutputBinding {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package group.rxcloud.capa.component.pubsub;

public abstract class PubSub {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package group.rxcloud.capa.component.state;

public abstract class Store {
}
Loading

0 comments on commit fb6dcd4

Please sign in to comment.