-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make java-sdk as a independent project #188
Comments
Java is an important user, so a project with good readability and maintainability is necessary. Now it is directly generated through The dapr-java-sdk is very easy to understand and maintain. |
Thanks for your feedback! Regarding independent project,we plan to upload the jar package to maven central repo,and I think that's enough for developers to use? |
I am happy to help. I have studied all the codes of dapr's java-sdk. If layotto needs java-sdk, I am very willing to participate. |
Thanks for your reply, let me know the ideas of the community! I think... |
Cool!
|
Regarding the repo: |
I have the same idea as you. I am currently building the java version of the At present I have implemented the In fact, I am trying to promote this project on ctrip. I am expecting that this project can help deploy business code on ctrip-cloud-platform and other-cloud-platforms(aws/...). We have a technology interest group working hard for this. Looking forward to participating in the construction of layotto. |
So how can I participate in the construction of For example, like the following: Direct refer to dapr-java-sdk and layotto-go-sdk, |
Yes, of course you can.I'm glad the community has become active. |
Sounds cool! I'm curious how you implement these APIs in java sdk? Since they are grpc API and defined by proto files,how you define grpc API in java?
Wait a minute, Layotto config API is experimental and might be refactored in the future. It's a long story. We are working with Dapr to design config API, and the definition is still in discussion,see dapr/dapr#2988.
Wow,we look forward to building the project with you guys! |
Yep,you can refer to dapr-java-sdk and layotto-go-sdk. Personally I hope users can use one sdk to invoke Dapr,Layotto and your |
Hi, let me talk about my thoughts and hope to share: Although several projects (dapr/layotto/capa) all claim to use a unified API definition, they actually play their own, such as dapr-proto and layotto-proto are independent implementations ( Although it is written the same). If for the goal of "a user can write once and run everywhere" using an SDK, then we may need to add an abstraction layer on top of it, just like the abstraction layer we do on middleware. Block the differences between dapr/layotto/capa items. For example, referring to the The Reactive Manifesto, we can jointly launch the "xxxx Manifesto" with dapr, and then define a unified API in this declaration through protobuf. These APIs It has nothing to do with specific projects such as dapr/layotto/capa. After that, the user only needs to program for this library when coding, and then adapt it to the client implemented by dapr, layotto or capa through different adapters. ps: capa (cloud-application-api) is the Hi,我说一下我的想法,希望交流一下: 虽然现在的几个项目(dapr/layotto/capa)都宣称使用统一的API定义,但实际上还是自己玩自己的,比如dapr-proto和layotto-proto都是独立的实现(虽然写的一样吧)。 假如为了"用户使用一个SDK可以做到一次编写,到处运行"这样一个目标,那我们可能需要在这之上再加入一个抽象层,就像我们在中间件上面做的抽象层一样,以此来屏蔽dapr/layotto/capa这些项目之间的差异。 例如参考反应式宣言,我们可以联合dapr共同发起《xxxx宣言》,然后在这个宣言中通过protobuf定义好统一的API,这些API与dapr/layotto/capa等具体项目无关。 之后,用户在编码时只针对这个库进行编程就可以了,再通过不同的adapter适配到dapr、layotto或者capa等具体实现的client上。 ps: capa(cloud-application-api)是上述提到的 |
HAHA, you can understand that I copied the code of dapr-java-sdk, and then modified the underlying implementation inside, (call dapr-sidecar in the sdk -> modified to call different middleware SDKs)
If like the above, there is a unified API definition file, (it may be independently deployed in maven), then I can directly reference it and update my code when it is modified. |
@kevinten10 I really like your idea. But currently I don't know how to generate language specifc API (not grpc API) from proto files. Give me some time to understand your reactive-streams-jvm example. Is |
Personally I was thinking about another idea recently. I want to launch a project to integrate Spring Cloud(or SOFA boot) project with existing sidecar like envoy,mosn,dapr and layotto. If we have such a java API, it will be much more vendor neutral By the way, I just merged the java sdk pr #153 .We can work on java sdk based on @ZLBer 's contribution now |
I'm also thinking about how to make a unified API recently.
I have already started working on |
Haha,I get it.So we need to build api specifications and products with community influence before we can attract users.
It's ok to submit pull request directly to the |
I consulted dapr about the progress of the standard API in the dapr/dapr#2817 I don’t seem to see much progress so far. Regarding the standard API, I wrote a sample cloud-runtimes-jvm I might publish it on maven first I think the subsequent By the way, I used the decomposition mode #194 |
Chinese:
|
Hi, Thanks for sharing your thoughts!
ps: We plan to open source |
This issue has been automatically marked as stale because it has not had recent activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue or help wanted) or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as pinned, good first issue or help wanted. Thank you for your contributions. |
Do we consider
java-sdk
as a independent project,Just like dapr-java-sdk did.
The text was updated successfully, but these errors were encountered: