Skip to content
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

[OSPP 2022] improve layotto-java-sdk and layotto-spring-boot #626

Open
seeflood opened this issue Jun 4, 2022 · 11 comments · Fixed by layotto/java-sdk#42 · May be fixed by layotto/java-sdk#41
Open

[OSPP 2022] improve layotto-java-sdk and layotto-spring-boot #626

seeflood opened this issue Jun 4, 2022 · 11 comments · Fixed by layotto/java-sdk#42 · May be fixed by layotto/java-sdk#41
Assignees

Comments

@seeflood
Copy link
Member

seeflood commented Jun 4, 2022

Since OSPP is for chinese community, this issue is written in chinese

Detail

https://summer-ospp.ac.cn/#/org/prodetail/2295a0213

增强layotto-java-sdk和layotto-spring-boot

你需要做什么?

  1. 增强layotto的java-sdk的功能,使其与go-sdk对齐。现在的java-sdk有file、lock、pubsub、sequencer、state 的API,缺少secret、config等API。
  2. 完善 layotto-sdk-springboot, 将layotto的更多功能集成进spring-boot。layotto-sdk-springboot的设计目标是帮助 spring-boot 的用户低成本接入 Layotto,比如用户在代码中添加一个java注解后,就能方便的进行消息监听、收到新消息后自动调用方法。
  3. 在 layotto-sdk-springboot 的基础上,开发 layotto-sdk-sofaboot, 方便 sofaboot 用户使用 layotto。

你可以收获什么?
你既可以了解到运行时框架的诸多优势与基本原理,又可以学习到spring-boot插件的开发过程,快来吧。

@github-actions
Copy link

github-actions bot commented Jul 5, 2022

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.

@github-actions github-actions bot added the stale label Jul 5, 2022
@seeflood seeflood added pinned and removed stale labels Jul 5, 2022
@seeflood
Copy link
Member Author

seeflood commented Jul 9, 2022

进展:
在看 java-sdk,下周提 pr
还没搞spring-boot 集成

@kevinten10
Copy link
Member

我看到一个有趣的项目,或许可以参考一下:

quarkus和dapr sdk的集成:quarkiverse/quarkus-dapr#5

@seeflood
Copy link
Member Author

进展:

  • CRUD 开发中
  • configuration API 订阅的功能在参考 pubsub API 订阅

@kevinten10
Copy link
Member

configuration API 订阅的功能在参考 pubsub API 订阅

Hi,我有个疑问点。为什么不把pubsub的订阅放入runtime API定义中呢。而是放到appcallback API中。

就像configuration的订阅API:

  rpc SubscribeConfiguration(stream SubscribeConfigurationRequest) returns (stream SubscribeConfigurationResponse) {}

完全可以在runtime API去定义pubsub的subscribeEvent API啊。

@kevinten10
Copy link
Member

like this: https://github.com/capa-cloud/cloud-runtimes-jvm/blob/master/cloud-runtimes-api/src/main/java/group/rxcloud/cloudruntimes/domain/core/PubSubRuntimes.java

在SDK模型中,似乎无法很好的定义appcallback API,所以我们采用的是类似configuration的subscribe方式。

Server streamingBidirectional streaming风格的runtime API。

@seeflood
Copy link
Member Author

seeflood commented Jul 19, 2022

为什么不把pubsub的订阅放入runtime API定义中呢。而是放到appcallback API中。

就像configuration的订阅API

That's a long story :)
I totally agree with u. But dapr sub API chose this callback style.
Since we are trying to be compatible with Dapr API, we have to support it.

@fft0518
Copy link
Contributor

fft0518 commented Jul 23, 2022

本周进展:
1、Config的CRUD核心代码基本完成,在写测试。
2、Sub功能在开发中

@ZLBer
Copy link
Member

ZLBer commented Jul 27, 2022

我看到一个有趣的项目,或许可以参考一下:

quarkus和dapr sdk的集成:quarkiverse/quarkus-dapr#5

@kevinten10 看起来我们可以试试把layotto的client直接注入到spring-boot中? 现在的做法是单功能注解

@kevinten10
Copy link
Member

@kevinten10 看起来我们可以试试把layotto的client直接注入到spring-boot中? 现在的做法是单功能注解

我觉得可以,用户可以直接从spring ioc中获取到一个client(带有默认参数),直接使用这个client即可。

@seeflood
Copy link
Member Author

seeflood commented Aug 6, 2022

action:

  • 提个 issue,say hello 报错
  • @ZLBer 投屏对下遇到的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants