Skip to content

RelaxSpirit/Tarantool.Queue.NetCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tarantool.Queue.NetCore

NETCore client for working with Tarantool Queue is based on the library progaudi.tarantool.

.NET Versions

Can be used in projects based on .NET 6.0, .NET 7.0, and .NET 8.0

Usage

Standard Tarantool Queue

  • Linux
    1. Run Tarantool:

      tarantool - i

    2. Run netBox:

      tarantool> box.cfg { listen = 'host:port' }

    3. Start Tarantool Queue

      tarantool> queue = require('queue')

    4. Create test tube if need:

      tarantool> queue.create_tube('queue_test_fifo', 'fifo', {if_not_exists = true, temporary = false})

  • Use cases are in projects:
    1. For Consume
    2. For Produce
    3. In projects in the initialization block, replace parameter in function UseTarantoolQueue with your host settings and port.
    4. Run StandardTarantoolQueueReader and StandardTarantoolQueueWriter

Custom Tarantool Queue

  • Linux
    1. Copy the folder of example lua files to the directory '/home/[your_Linux_user]/override' of your Linux machine where Tarantool and Tarantool Queue are installed.
    2. Run Tarantool:

      tarantool - i

    3. Run netBox:

      tarantool> box.cfg { listen = 'host:port' }

    4. Start custom Tarantool Queue

      tarantool> queue = require('queuecustom')

    5. Register custom Tarantool Queue driver

      tarantool> queue.register_driver('customtube', require('queuecustom.customutube'))

    6. Create test custom tube if need:

      tarantool> queue.create_tube('queue_test_custom_tube', 'customtube', {if_not_exists = true, temporary = false})

  • Use cases are in projects:
    1. For Consume
    2. For Produce
    3. In projects in the initialization block, replace parameter in function UseTarantoolQueue with your host settings and port.
    4. Run CustomTarantoolQueueReader and CustomTarantoolQueueWriter

The custom Tarantool Queue also supports the full functionality of standard Tarantool Queue queue and tubes.

About

NETCore library for working with Tarantool queues. Based on the library progaudi.tarantool.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages