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

源码解析:启动过程 #505

Closed
yuanyuancin opened this issue May 19, 2022 · 9 comments
Closed

源码解析:启动过程 #505

yuanyuancin opened this issue May 19, 2022 · 9 comments
Assignees

Comments

@yuanyuancin
Copy link
Collaborator

yuanyuancin commented May 19, 2022

介绍

SOFAArk2.0里应用有三种启动方式:

  • java -jar 方式启动

  • IDE启动,指定SofaArkBootstrap.launch启动

  • 内嵌模式启动

在embed模式下会将arkcontainer的启动内嵌在master biz spring上下文启动过程中,监听SpringApplicationEvent触发ark容器的启动,使得整个应用还是以AppClassLoader启动,对应用侵入较小。
arkcontainer的启动会发布Ark服务、执行pipeline。

难度: 🌟🌟🌟🌟

参考解析

重点源码

com.alipay.sofa.ark.bootstrap.ArkLauncher
com.alipay.sofa.ark.support.startup.SofaArkBootstrap#launch

com.alipay.sofa.ark.springboot.loader.JarLauncher
com.alipay.sofa.ark.springboot.listener.ArkApplicationStartListener
com.alipay.sofa.ark.container.ArkContainer#main
com.alipay.sofa.ark.container.pipeline.StandardPipeline#process
@gaosaroma
Copy link
Collaborator

please assign it to me. : )

@wangxingyu000
Copy link

please assign it to me. : )

hello~ 领取任务后欢迎添加 SOFAGirl 微信:SOFAGirl180419,备注“SOFAArk源码解析”,方便我们之后跟进任务以及发布奖品

@wangxingyu000
Copy link

please assign it to me. : )
hello~ 任务已经在进行中了吗?可以加下 SOFAGirl 微信:SOFAGirl180419,任务完成之后会发布奖品哟~

@gaosaroma
Copy link
Collaborator

gaosaroma commented Jun 15, 2022

please assign it to me. : )
hello~ 任务已经在进行中了吗?可以加下 SOFAGirl 微信:SOFAGirl180419,任务完成之后会发布奖品哟~

好的,预计6.20前能提pr~

@lylingzhen lylingzhen assigned lijunf and unassigned gaosaroma Jun 17, 2022
@lylingzhen
Copy link
Contributor

gaosaroma is busy. I transferred this issue to lijunf now.

@masonqin
Copy link

@wangxingyu000 麻烦问下已经assign的issue其他人可以并行参与吗?感兴趣,想先写一些内容在申请assign

@wangxingyu000
Copy link

@wangxingyu000 麻烦问下已经assign的issue其他人可以并行参与吗?感兴趣,想先写一些内容在申请assign

hello,认领同学已经在进行中了,最好不要并行哟 #476 这个还没有人认领,感兴趣的话可以看下,还有其他问题可以加下 SOFAGirl 微信:SOFAGirl180419,回复会比较及时哟

@lijunf
Copy link
Collaborator

lijunf commented Jul 2, 2022

pr: sofastack/sofastack.tech#965

@lylingzhen
Copy link
Contributor

PR was merged, close this issue.

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

No branches or pull requests

6 participants