当前位置:网站首页>Application of twelve factors (4)
Application of twelve factors (4)
2022-06-29 20:05:00 【Full stack programmer webmaster】
IV The back-end service
Treat back-end services as pluggable resources
A back-end service is any service consumed when an application is running normally on the network . Include database ( Such as MySQL or CouchDB), news / Queue system ( Such as RabbitMQ or Beantalkd), Email SMTP service ( Such as Postfix), Cache system ( Such as Memcached).
Database, a back-end service, is traditionally managed by the same system administrator as application runtime deployment . In addition to these locally managed services , Applications also have services managed by third parties . Such as SMTP service (Postmark), Measurement data collection services ( Such as New Relic or Loggly), Binary storage service ( Such as Amazon S3), even to the extent that API Access service (Twitter,GoogleMap, or Last.fm).
12 The code of the factor application makes no difference between these local and third-party services . Application end , Are pluggable resources , adopt URL Or other configured positioning / Authentication services . One copy 12 The deployment of factor application can be implemented locally without any code modification MySQL Replace the database with a third-party service ( Such as Amazon RDS). alike , Local SMTP Services can be replaced by third parties SMTP service ( Such as Postmark) Without changing the code . Between the two case, Only the configuration file for processing resources needs to be changed .
Every back-end service is a resource . Such as MySQL It's a resource , Two MySQL database ( At the application layer sharding) Two independent resources .12 Factor applications see these databases as pluggable resources , It is loosely coupled when deployed .
Resources can be plugged in and out at deployment as desired . Such as , If the application database fails due to hardware problems , Application administrators can quickly recover from a recent backup . The current production library can be unloaded , The new database is mounted – No code changes are required .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/101288.html Link to the original text :https://javaforall.cn
边栏推荐
- Flutter calls Baidu map app to realize location search and route planning
- What is a database? Database detailed notes! Take you into the database ~ you want to know everything here!
- Detailed description of gaussdb (DWS) complex and diverse resource load management methods
- ASP.Net Core创建Razor页面上传多个文件(缓冲方式)(续)
- 一个超赞的开源的图片去水印解决方案
- Real time tracking of bug handling progress of the project through metersphere and dataease
- 命令执行(RCE)漏洞
- Ovirt database modify delete node
- Hangfire详解
- static静态成员变量使用@Value注入方式
猜你喜欢
Flume配置1——基础案例
一个超赞的开源的图片去水印解决方案
Configuration du Flume 4 - source personnalisée + sink
JMeter BeanShell explanation and thread calling
一次 Keepalived 高可用的事故,让我重学了一遍它!
Real time tracking of bug handling progress of the project through metersphere and dataease
Tag based augmented reality using OpenCV
Flume theory
ASP. Net core creates razor page and uploads multiple files (buffer mode) (Continued)
Etcd database source code analysis - put process of server
随机推荐
npm ERR! fatal: early EOF npm ERR! fatal: index-pack failed
The era of data security solutions
SSH命令及使用说明
Summary of swift optional values
Flume-ng配置
lock4j--分布式锁中间件--自定义获取锁失败的逻辑
7.取消与关闭
go: 如何编写一个正确的udp服务端
Sword finger offer 66 Building a product array
Nutch2.1 distributed fetching
Zotero journal automatic matching update influence factor
[USB flash disk test] in order to transfer the data at the bottom of the pressure box, I bought a 2T USB flash disk, and the test result is only 47g~
SSH command and instructions
MySQL remote connection
Go: how to write a correct UDP server
There is no small green triangle on the method in idea
第二章(物理层)
一次 Keepalived 高可用的事故,让我重学了一遍它!
Flume配置1——基础案例
Flume配置4——自定义Source+Sink