使用libdrizzle作为异步mysql连接器 [英] using libdrizzle as an async mysql connector

查看:495
本文介绍了使用libdrizzle作为异步mysql连接器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣使用 libdrizzle 作为一个通用异步连接器的mysql数据库的一个c + +应用程序(实际上作为后端 hiberlite )。自今年年初以来,libdrizzle不再是一个单独的项目,并且在同一个毛毛雨项目中合并,因此作为单独安装

I'm interested in using libdrizzle as a generic asynchronous-capable connector for mysql db for a c++ application (actually as a backend for hiberlite). Since early this year libdrizzle is no longer a separate project and its merged in the same drizzle project, so installing as a separate dependency (unrelated to the rest of drizzle) might have become slightly more complex.

我想知道是否有人使用这个库来连接到MySql或MariaDB,可能会使得一些米老鼠的基准测试有一个粗略的想法如何相对于同步默认驱动程序。

I'm wondering if people has used this library for interfacing to MySql or MariaDB, probably make some mickey mouse benchmarks to have a rough idea how it stands relative to the synchronous default driver.

此外,对安装,设置,陷阱困难的评论

Also, comments on difficulties to install, setup, pitfalls (the documentation is essentially nonexistent) would be greatly appreciated.

推荐答案

您可能需要查看ngx_drizzle( drizzle-nginx-module )。

You might want to take a look at ngx_drizzle (drizzle-nginx-module) at github.

从模块说明:


这是一个nginx上游模块,以非阻塞和流式方式将libdrizzle集成到Nginx中。

This is an nginx upstream module integrating libdrizzle into Nginx in a non-blocking and streamming way.

本质上,它为nginx内部提供了一种非常有效和灵活的方式来访问MySQL,Drizzle以及其他支持Drizzle或MySQL有线协议的RDBMS。它也可以作为那些RDBMS后端的直接REST接口。

Essentially it provides a very efficient and flexible way for nginx internals to access MySQL, Drizzle, as well as other RDBMS's that support the Drizzle or MySQL wired protocol. Also it can serve as a direct REST interface to those RDBMS backends.

如果你使用MySQL,那么MySQL 5.0〜5.5是必需的。我们不确定MySQL 5.6+是否工作;报告欢迎!

If you're using MySQL, then MySQL 5.0 ~ 5.5 is required. We're not sure if MySQL 5.6+ work; reports welcome!

这篇关于使用libdrizzle作为异步mysql连接器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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