使用libdrizzle作为一个异步的MySQL Connector [英] using libdrizzle as an async mysql connector

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

问题描述

我感兴趣的使用 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.

此外,在困难的意见,安装,设置陷阱(文档基本上是不存在的)将大大AP preciated。

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

推荐答案

您可能想看看ngx_drizzle(的小雨-nginx的模块)。

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

从模块说明:

这是一个nginx的上游模块集成到libdrizzle Nginx的一个无阻塞streamming方式。

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

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

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 Connector的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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