当前位置:网站首页>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
边栏推荐
- WPS和Excele
- Introduction to the latest version 24.1.0.360 update of CorelDRAW
- Freemaker template framework generates images
- File contains vulnerability
- What is a database? Database detailed notes! Take you into the database ~ you want to know everything here!
- Summary of swift optional values
- 软件测试逻辑覆盖相关理解
- Zotero期刊自動匹配更新影響因子
- PHP implementation extracts non repeated integers (programming topics can be the fastest familiar functions)
- Hangfire详解
猜你喜欢

Flume配置4——自定义Source+Sink

一个mysql里有3306端口下,一个mysql有20多个数据库,怎么一键备份20多个数据库,做系统备份,防止数据误删除?

JVM (4) bytecode technology + runtime optimization

文件包含漏洞

idea中方法上没有小绿色三角

【Try to Hack】vulnhub narak

lock4j--分布式锁中间件--自定义获取锁失败的逻辑
![[boutique] detailed explanation of Pinia](/img/94/d332e32dba54be3c2d3f6ff08a85fa.png)
[boutique] detailed explanation of Pinia

How to set a pod to run on a specified node

一个超赞的开源的图片去水印解决方案
随机推荐
Freemaker template framework generates images
云服务器的安全设置常识
Flume-ng配置
Jupyter服务安装及启动
Community interview -- jumpserver open source fortress in the eyes of an it newcomer
1404万!四川省人社厅关系型数据库及中间件软件系统升级采购招标!
data link layer
Flume theory
Chapter II (physical layer)
Snowflake ID, distributed unique ID
Common knowledge of ECS security settings
剑指 Offer 59 - II. 队列的最大值
How to use filters in jfinal to monitor Druid for SQL execution?
The era of data security solutions
Real time tracking of bug handling progress of the project through metersphere and dataease
Withdrawal of user curve in qualified currency means loss
Hangfire详解
idea中方法上没有小绿色三角
Linux Installation mysql8
Oracle11.2.0.4-rac cluster hang analysis record