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

留言板 #2

Open
emac opened this issue Dec 11, 2016 · 20 comments
Open

留言板 #2

emac opened this issue Dec 11, 2016 · 20 comments

Comments

@emac
Copy link
Owner

@emac emac commented Dec 11, 2016

有问必答,知无不言,言无不尽,仅限技术。:)

@biezhi
Copy link

@biezhi biezhi commented Dec 17, 2016

博主在博客中提到微服务,这里的架构图是用什么工具画的?

@emac
Copy link
Owner Author

@emac emac commented Dec 18, 2016

@biezhi 用的是Mac自带的Keynote,选择Modern Type模板

@mahengyang
Copy link

@mahengyang mahengyang commented May 11, 2017

性能测试利器还有一个tsung,强大的并发,普通的pc都能产生1万个http并发请求

@emac
Copy link
Owner Author

@emac emac commented May 11, 2017

@mahengyang 对的,同类的比较新的还有locust.io, yandex-tank等

@devonliu02
Copy link

@devonliu02 devonliu02 commented May 17, 2017

最后还要说一句,Mock技术虽然强大,但主要还是适用于单元测试,在集成测试,性能测试,自动化测试等其他测试领域使用并不多。

针对小结里的最后一句话有点小疑问,在集成测试的时候如果用到 Mock 的话,那还叫集成测试吗?还是指别的意思?

@emac
Copy link
Owner Author

@emac emac commented May 17, 2017

@devonliu02 看情况,比如涉及多个系统的集成测试,可以通过Mock替换部分系统依赖

@LaPoPvLe
Copy link

@LaPoPvLe LaPoPvLe commented Aug 2, 2017

http://emacoo.cn/arch/microservice-registry-center/consul-template.png
这个图中,LB 是通过 Consul Template 动态生成的能理解。
但是如果集群中有 2 个 Service Provider(SP1, SP2),SP2 要调用 SP1 的 API,还需要通过Load Balancer 吗?

@emac
Copy link
Owner Author

@emac emac commented Aug 2, 2017

@LaPoPvLe 是的,只要SP1是分布式部署的。其实,从SP1的角度来看,SP2和其他服务调用者并无区别。

@LaPoPvLe
Copy link

@LaPoPvLe LaPoPvLe commented Aug 3, 2017

@emac 回复收到。我再消化消化,可能大局观上还没参透,理解起来不是很通顺。
内部服务间的调用,每次都通过 API Gateway 总感觉哪里怪怪的。
另外就是,API Gateway 很多时候还要负责一些 AOP 的职责(PS. 类似认证授权)。
还在研究,有问题继续来请教( /\

@emac
Copy link
Owner Author

@emac emac commented Aug 3, 2017

@LaPoPvLe 第一,严格来说,LB和API Gateway是不同的;第二,对于稍具规模的应用,一般都会有多层LB,比如外网LB和内网LB,你之前说的属于服务间调用,一般都是走内网LB。而API Gateway一般介于外网LB和内网LB之间。

@hackeryutu
Copy link

@hackeryutu hackeryutu commented Apr 1, 2018

您好, 看了一下《【CI/CD】几种常见的不停机发布方式》 我有一个问题, 就是全量发布牵扯到数据库结构的变更, 如果发布回滚,数据库有办法回滚吗?

@emac
Copy link
Owner Author

@emac emac commented Apr 1, 2018

@hackeryutu
Copy link

@hackeryutu hackeryutu commented Apr 5, 2018

非常感谢, 以前团队用flyway没有深究,现在终于知道为什么leader code review脚本之后, 叫我写冗余列的原因了。

@hackeryutu
Copy link

@hackeryutu hackeryutu commented Apr 8, 2018

再请教一个问题《高可靠的的分布式应用发布系统》, 如果服务器是tomcat, 怎么可以检测到tomcat启动失败呢? 有没有类似启动失败回调一样的东西? 还是说每隔一段时间去请求一次, 看看有没有响应, 如果太久没有响应就认为这个tomcat启动失败了?

@hengluwen
Copy link

@hengluwen hengluwen commented Apr 9, 2018

个人理解服务网格和代理模式的本质是讲代理层下沉到服务实例上,来解决统一代理层的中心化问题及因中心化带来的请求代理瓶颈问题,思想还是不错的。

@ExcellentYuXiao
Copy link

@ExcellentYuXiao ExcellentYuXiao commented Apr 23, 2018

http://emacoo.cn/coding/java-apt-logging/
博主您好,这篇文章中你有用到IDEA插件来消除编译错误。我这边想问几个开发流程:

  1. 插件开发时,只需要在plugin.xml中声明PsiAugmentProvider的继承类就可以自动运行了么?
    2.文中的loggerCache是如何定义的呢?能提供完整的code么,多谢~

@zwl1619
Copy link

@zwl1619 zwl1619 commented May 4, 2018

博主,看了你的文章《从零搭建一个基于Istio的服务网格》,能否写一篇怎么使用Istio,比如如何做一个博客,在哪里写api,在哪里写前端UI等?

@emac
Copy link
Owner Author

@emac emac commented May 4, 2018

@MrXionGe
Copy link

@MrXionGe MrXionGe commented Aug 10, 2018

您好,看了您的文章过来探讨一个问题。最近入坑webflux。短时间内还不适应router functions这种风格,那么使用传统mvc注解会不会破坏响应式体系?另外,如果控制层的返回值不用flux, mono来封装,是否也会破坏这个体系?

@trainingbasket01
Copy link

@trainingbasket01 trainingbasket01 commented May 7, 2020

Your post is very great.I read this post. It's very helpful. I will definitely go ahead and Your post is very great.I read this post. It's very helpful. I will definitely go ahead and take advantage of this. You absolutely have wonderful stories. Cheers for sharing with us your blog. Python training in Noida
https://www.trainingbasket.in

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

Successfully merging a pull request may close this issue.

None yet
12 participants