当前位置:网站首页>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
边栏推荐
- Nutch2.1分布式抓取
- La collection numérique Meng xiangshun, artiste national du tigre peint, est disponible en quantité limitée et est offerte avec Maotai de l'année du tigre
- Software engineering - principles, methods and Applications
- 2022年理财利率都降了,那该如何选择理财产品?
- Withdrawal of user curve in qualified currency means loss
- There is no small green triangle on the method in idea
- How to solve the problem of insufficient memory space in Apple iPhone upgrade system?
- Zotero journal automatic matching update influence factor
- [boutique] detailed explanation of Pinia
- 【摸鱼神器】UI库秒变低代码工具——表单篇(一)设计
猜你喜欢

日本樱桃一颗拍出1980元天价,网友:吃了有上当的感觉

Lock4j -- distributed lock Middleware -- customize the logic of lock acquisition failure

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

Linux Installation mysql8

Performance improvement at the cost of other components is not good

Flume configuration 1 - basic case

How to set a pod to run on a specified node

The list of winners in the classic Smurfs of childhood: bluedad's digital collection was announced

关于印发宝安区重点产业项目和总部项目遴选及用地保障实施细则(2022修订版)的通知

罗清启:高端家电已成红海?卡萨帝率先破局
随机推荐
Lock4j -- distributed lock Middleware -- customize the logic of lock acquisition failure
Chapter II (physical layer)
What is a database? Database detailed notes! Take you into the database ~ you want to know everything here!
Sword finger offer 41 Median in data stream
idea中方法上没有小绿色三角
童年经典蓝精灵之百变蓝爸爸数字藏品中奖名单公布
Sword finger offer 59 - ii Maximum value of the queue
proxmox集群节点崩溃处理
Zotero期刊自动匹配更新影响因子
A great open source image watermarking solution
JVM (2) garbage collection
ASP.Net Core创建Razor页面上传多个文件(缓冲方式)(续)
lock4j--分布式锁中间件--自定义获取锁失败的逻辑
Jupyter服务安装及启动
Snowflake ID, distributed unique ID
Introduction to the latest version 24.1.0.360 update of CorelDRAW
Hangfire details
Etcd database source code analysis - put process of server
Summary of swift optional values
Flume configuration 2 - ganglia for monitoring