LDAP/Directory or database?

Source: Internet
Author: User
Tags ldap
I have seen several good articles about LDAP. Anyone who is interested in LDAP but not a master needs to take a look (here LDAP and Directory are counted as a meaning, strictly speaking, directory is the Directory service, and LDAP is the protocol used to access this Directory service. You can understand this by yourself ):

  1. What is LDAP? Do I need it?
  2. Do I need LDAP or a database?
  3. LDAP refining Summary

In essence, LDAP is suitable for hierarchical structures with special emphasis on reading and searching speeds. It does not require a particularly high write speed for data storage. It has several features:

  1. Ultra-high read Speed
  2. Relatively static data, such data cannot be updated too frequently, such as storing users' phone numbers (you can't change it)
  3. Distributed. distributed can have two meanings here. The first is that the data stored in itself can be distributed in multiple places, and the other is to decouple specific data from applications, this will become the basis for single-point login. for example, a company has a lot of applications that require identity verification. Each application should separate authentication and hand it over to a centralized place for verification. Therefore, it is possible to implement Single-point login, this authentication (such as user name, password, and permission) can be decoupled from the application using LDAP.
  4. Hierarchical Structure: The data has a hierarchical structure, which can be used to indicate the data organization and relationship.
  5. Object-oriented, the elements in LDAP are object-oriented.
  6. The standardized mode allows you to define the classes and attributes of stored data.
  7. Multi-Value Attribute supported
  8. Supports multiple active copies and allows data mirroring on multiple LDAP servers at the same time

So what do everyone do with LDAP? LDAP is very popular in three aspects:

  1. For user verification, imagine the pain of designing and verifying the user table structure for each application.
  2. Used for user authorization
  3. It is used to store user information, such as name, phone number, address, and hobbies. This information is usually required by every application to share this resource.

Under what circumstances should I use a database instead of LDAP?

  1. Data changes frequently, such as data in a bank account.
  2. Data requires strict transaction processing to ensure atomicity and consistency
  3. Data Writing is as important or more important as reading and searching.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.