Disable Logback log files in containers
We found the spring boot project running containers will keep restarting after some time, maybe 10 days, maybe 5 days. The root cause is spring logback is writing log files into /tmp/ directory as...
Just One Pure ITer
We found the spring boot project running containers will keep restarting after some time, maybe 10 days, maybe 5 days. The root cause is spring logback is writing log files into /tmp/ directory as...
Authorization / Session Cross Domain & SSO
by leelight · Published October 27, 2020 · Last modified December 15, 2022
如果accessToken放Client端,refreshToken存储在服务器,那么会违背微服务的无状态构架初衷。 accessToken和refreshToken统一放在Client端,可以遵循微服务无状态构架。 两种情况都可以通过accessToken来延长refreshToken,做到长时间保持登录状态的需求。
In microservices, the front service should use the Authorization Code(Grant Type) to let users log in with the web browser, and other services in the background should use Client Credentials(Grant Type).
体会到微服务带来好处的同时,很多公司也明显感受到微服务化带来的一系列让人头疼的问题。 本文是笔者对自己多年微服务化经历的总结。如果你正准备做微服务转型,或者在微服务化过程中遇到了困难。此文很可能会帮到你!
走出微服务误区:避免从单体到分布式单体
我曾经看到过一些文章,开发人员在文章中分享了他们的公司转向面向服务架构(SOA),最后以失败告终又迁移回单体架构的案例。当然,这样做并没有什么错。尝试新架构本来就是我们工作的一部分,看看新架构是否有效,如果无效就放弃。SOA 并不适合所有公司,如果不适合你的公司,那就坚持使用单体架构,如果适合,那就要用对它!
1. 前言 上一篇中梳理介绍了微服务架构的特点和优势,也明确说微服务架构是现代软件开发中解决生产力的一种模式。微服务可以大家加速现代企业中软件开发效率、软件稳定性,扩展性。
最近有个项目需要对外提供一个接口,提供公网域名进行访问,而且接口和交易订单有关,所以安全性很重要;这里整理了一下常用的一些安全措施以及具体如何去实现。
8秋API接口设计风格与11种API协议 8种API风格:RESTful, WebSocket, SOAP, Webhook, GraphQL,gRPC,MQTT,AMQP。 11种API协议:REST, gRPC, GraphQL, Websocket, SOAP, Webhooks, SSE, AMQP, MQTT, API协议,EDA,EDI REST API 授权认证方法 编码,加密,令牌化 这样讲API网关,你应该能明白了吧! 阿里大佬分享API网关在微服务架构中的应用 关于Spring Cloud Zuul 那些“不能说的秘密”! 如何设计 API 接口,实现统一格式返回? 基于 Apache APISIX,爱奇艺 API...
使用 Spring Boot Actuator 监控应用
Follow:
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |