| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
GQTP |
| 4 |
==== |
| 5 |
|
| 6 |
Summary |
| 7 |
------- |
| 8 |
|
| 9 |
GQTP is the acronym standing for "Groonga Query Transfer Protocol". |
| 10 |
|
| 11 |
GQTP is a protocol designed for Groonga. It's a stateful |
| 12 |
protocol. You can send multiple commands in one session. |
| 13 |
|
| 14 |
GQTP will be faster rather than :doc:`/server/http` when you send many |
| 15 |
light commands like :doc:`/reference/commands/status`. GQTP will be |
| 16 |
almost same performance as HTTP when you send heavy commands like |
| 17 |
:doc:`/reference/commands/select`. |
| 18 |
|
| 19 |
We recommend that you use HTTP for many cases. Because there are many |
| 20 |
HTTP client libraries. |
| 21 |
|
| 22 |
If you want to use GQTP, you can use the following libraries: |
| 23 |
|
| 24 |
* Ruby: `groonga-client <https://github.com/ranguba/groonga-client>`_ |
| 25 |
* Python: `poyonga <https://github.com/hhatto/poyonga>`_ |
| 26 |
* Go: `goroo <https://github.com/hhatto/goroo>`_ |
| 27 |
* PHP: `proonga <https://github.com/Yujiro3/proonga>`_ |
| 28 |
* C/C++: Groonga (Groonga can be also used as library) |
| 29 |
|
| 30 |
It's not a library but you can use |
| 31 |
:doc:`/reference/executables/groonga` as a GQTP client. |
| 32 |
|
| 33 |
How to run |
| 34 |
---------- |
| 35 |
|
| 36 |
:doc:`/reference/executables/groonga` is a GQTP server implementation. |
| 37 |
You can run a Groonga server by the following command line:: |
| 38 |
|
| 39 |
groonga --protocol gqtp -s [options] DB_PATH |
| 40 |
|
| 41 |
You can run a Groonga server as a daemon by the following command |
| 42 |
line:: |
| 43 |
|
| 44 |
groonga --protocol gqtp -d [options] DB_PATH |
| 45 |
|
| 46 |
See :doc:`/reference/executables/groonga` for available ``options``. |