separation of mechanism and policy

mechanism determines how to do something;

policies determin what will be done.

 

policies

=======

machanism

 

example:

the use of card keys to gain access to lock the door.

machanism: reader, locker, server

policy: which people allowed, which time..

 

contrast this with issuing physical keys: if you want to change who can open a door, you have to issue new keys and change the lock.

 
posted @ 2022-09-15 14:36  xuyv  阅读(25)  评论(0编辑  收藏  举报