我可以使用 Google 的协议缓冲区来处理 LDAP 服务器中的 LDAP 请求吗?

发布于 2024-08-25 13:25:38 字数 197 浏览 4 评论 0原文

我需要在我的应用程序服务器中处理传入的预定义 ASN 格式数据(来自使用 BER 库构建它的客户端的真实性)。这通常是一个 LDAP 服务器,其中每个请求都采用预定义的 ASN 格式。我可以使用 Google 的协议缓冲区来处理服务器端的请求吗?它是否有助于提高服务器请求处理的性能?是否会减少处理 ASN 消息时发生的 malloc() 调用数量?

谢谢, 娜迦

I need to process the incoming predefined ASN format data(coming from verity of clients that uses BER library to build it) in my application server. This is typically an LDAP server where every request will be in a predefined ASN format. Can i use Google's protocol buffers to process the requests in the server side? Will it help any way to improve performance of my servers request handling? Is it anyway reduce the number of malloc() calls that happens while processing ASN messages?

Thanks,
Naga

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

金兰素衣 2024-09-01 13:25:38

老实说,我不知道这有什么帮助。除非您可以更改服务器客户端,否则您必须在某个时候处理 ASN 格式 - 您认为从一种格式转换为另一种格式会从哪里受益?

如果您在收到请求后在不同服务器之间进行大量内部处理,那么在这种情况下,从 ASN 转换为协议缓冲区格式可能是有意义的 - 但听起来像您'我们仍然需要在边界处进行 ASN 处理。

I don't see how it's likely to help, to be honest. Unless you can change both the server and the client, you'll have to handle the ASN format at some point anyway - where do you think you'd get benefit from converting from one format to another?

If you have a lot of internal processing between different servers after you've received the request, then in that case it may make sense to translate from ASN to a protocol buffer format - but it sounds like you're still going to need ASN handling at the boundary.

许仙没带伞 2024-09-01 13:25:38

protobuf 的二进制格式与 BER 编码不同,您无法使用 protobuf 来解码这些消息。

The binary format of protobuf is not like BER encoding, you cannot use protobuf to decode those messages.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文