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 Coder
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...
How to set statement timeout for query execution? Prerequisites: sqlalchemy 1.3.19 MySQL 5.7.13 You can set the connection timeout easily like this:
1 2 |
sqlalchemy.create_engine("mysql+pymysql://{}:{}@{}:{}/{}?charset={}", connect_args={'connect_timeout': 10}) //10 seconds |
Authorization / Session Cross Domain & SSO
by leelight · Published October 27, 2020 · Last modified November 10, 2020
如果accessToken放Client端,refreshToken存储在服务器,那么会违背微服务的无状态构架初衷。 accessToken和refreshToken统一放在Client端,可以遵循微服务无状态构架。 两种情况都可以通过accessToken来延长refreshToken,做到长时间保持登录状态的需求。
in some JPA project, CrudReporsitory.save() is used this way:
1 |
repository.save(oldtEntity) |
sometime the oldEntity will be set with new properties, but sometimes you will find that the new assigned ID has not been set to...
org.apache.kafka.common.errors.RecordTooLargeException: The message is xxxx bytes when serialized which is larger than the maximum request size you have configured with the max.request.size configuration. How to fix this when you are using confluent Kafka docker....
Swarmprom is a starter kit for Docker Swarm monitoring with [Prometheus](https://prometheus.io/), [Grafana](http://grafana.org/), [cAdvisor](https://github.com/google/cadvisor), [Node Exporter](https://github.com/prometheus/node_exporter), [Alert Manager](https://github.com/prometheus/alertmanager) and [Unsee](https://github.com/cloudflare/unsee). https://github.com/stefanprodan/swarmprom.git
In this post, a simple health checker for one microservice will be created using the Jenkins pipeline. Prerequisites: Publish Over SSH Mattermost Notification Plugin Groovy Postbuild Jenkins
In this post, a simple health checker for one microservice will be created using theJenkins pipeline. Prerequisites: Mattermost Notification Plugin cURL or similar Jenkins
In microservices, the front service should use the Password Credentials to let users log in with the web browser, and other services in the background should use Client Credentials.
体会到微服务带来好处的同时,很多公司也明显感受到微服务化带来的一系列让人头疼的问题。 本文是笔者对自己多年微服务化经历的总结。如果你正准备做微服务转型,或者在微服务化过程中遇到了困难。此文很可能会帮到你!
Follow: