LDAP的用途是什么? [英] What is LDAP used for?

查看:193
本文介绍了LDAP的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道LDAP用于提供一些信息并帮助简化授权.

I know that LDAP is used to provide some information and to help facilitate authorization.

但是LDAP的其他用途是什么?

But what are the other usages of LDAP?

推荐答案

我将重点介绍为什么使用LDAP,而不是LDAP.

I will focus on why using LDAP, not what is LDAP.

使用模式类似于人们使用借书证或电话簿的方式.当您的任务需要一次写入/更新,多次读取/查询"时,您可以考虑使用LDAP. LDAP旨在为大规模数据集提供极快的读取/查询性能.通常,您只希望为每个条目存储一小部分信息.与读取/查询相比,添加/删除/更新性能相对较慢,因为假设您不经常进行更新".

The use model is similar like how people use library cards or phonebooks. When you have a task that requires "write/update once, read/query many times", you might consider using LDAP. LDAP is designed to provide extremely fast read/query performance for a large scale of dataset. Typically you want to store only a small piece of information for each entry. The add/delete/update performance is relatively slower compared with read/query because the assumption is that you don’t do "update" that often.

想象一下,您有一个拥有100万注册用户的网站,每秒有数千个页面请求.如果没有LDAP,则每次用户单击页面时,即使是静态页面查看,您都可能需要与数据库进行交互,以验证此登录会话的用户ID及其数字签名.显然,查询数据库以进行用户验证将成为您的瓶颈.通过使用LDAP,您可以轻松卸载用户验证并获得显着的性能改进.本质上,在此示例中,LDAP是数据库之外的另一个优化层,用于增强性能,而不是替换任何数据库功能.

Imagine you have a website that has a million registered users with thousands of page requests per second. Without LDAP, every time users click a page, even for static page viewing, you will probably need to interact with your database to validate the user ID and its digital signature for this login session. Obviously, the query to your database for user-validation will become your bottleneck. By using LDAP, you can easily offload the user validation and gain significant performance improvement. Essentially, in this example, LDAP is another optimization layer outside your database to enhance performance, not replacing any database functions.

LDAP不仅用于用户验证,具有以下属性的任何任务对于LDAP都是一个很好的用例:

LDAP is not just for user validation, any task that has the following properties might be a good use case for LDAP:

  1. 您需要多次定位一个数据,并且要快速找到它

  1. You need to locate ONE piece of data many times and you want it fast

您不在乎不同数据之间的逻辑和关系

You don’t care about the logic and relations between different data

您不会经常更新,添加或删除数据

You don’t update, add, or delete the data very often

每个数据条目的大小很小

The size of each data entry is small

您不介意将所有这些小数据放在一个集中的位置

You don’t mind having all these small pieces of data at a centralized place

这篇关于LDAP的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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