何时在数据库上使用 LDAP? [英] When to use LDAP over a database?

查看:15
本文介绍了何时在数据库上使用 LDAP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么时候应该使用 LDAP 与数据库/键值存储/面向列的数据库/等?

When should I use LDAP vs. database/key-value-store/column-oriented-database/etc?

推荐答案

LDAP 可以被认为是一个数据库.但我假设您指的是 SQL 数据库.

LDAP 数据存储适用于读取次数多于写入次数的系统.而其他数据库(如 SQL 存储)则专为事务性数据使用(高读写)而设计.

LDAP data stores are for systems with high number of reads compared to writes. While other databases such as SQL stores are designed for transactional data usage (high read and writes).

这就是 LDAP 是目录协议的原因.它非常适合阅读多而写作少的目录.

This is why LDAP is a directory protocol. It's well suited to directories where you read lots and write hardly.

来自这里

LDAP 的特点是一次写入多次读取"服务.那也就是说,通常存储在 LDAP 中的数据类型预计服务不会在每次访问时都发生变化.到说明:LDAP 不适合维护银行业务交易记录,因为就其性质而言,它们每时每刻都在变化访问(交易).然而,LDAP 将非常适合维护银行分行、营业时间、员工的详细信息等等.

LDAP is characterised as a 'write-once-read-many-times' service. That is to say, the type of data that would normally be stored in an LDAP service would not be expected to change on every access. To illustrate: LDAP would NOT be suitable for maintaining banking transaction records since, by their nature, they change on every access (transaction). LDAP would, however, be eminently suitable for maintaining details of the bank branches, hours of opening, employees etc..

这是另一个很好的介绍这里 - LDAP vs RDBMS

这篇关于何时在数据库上使用 LDAP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆