Recent

Author Topic: NOSQL database components  (Read 10634 times)

BrokenCode

  • Newbie
  • Posts: 4
NOSQL database components
« on: May 22, 2017, 05:52:39 pm »
Hello

We are using Lazarus/Freepascal in a multi-threaded Firebird environment, but are looking into running an in-memory NOSQL database such as Redis to increase our throughput.

We cannot find suitable Redis components for Lazarus, although there are some for Delphi. Does anyone know of any such components ? And in general any other components for other NOSQL database.

Thanks

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: NOSQL database components
« Reply #1 on: May 22, 2017, 07:33:07 pm »
This one is listed in redis website: https://github.com/ik5/redis_client.fpc
Well, it's 5 years behind but it's written without any specific redis command in mind, i.e. you give the command as string with parameters as array of const. Logically, hoping that there's no protocol change, it can be used with current redis version.

BrokenCode

  • Newbie
  • Posts: 4
Re: NOSQL database components
« Reply #2 on: May 23, 2017, 09:20:33 am »
Thanks. We had seen this but were concerned that there had been no updates in 5 years and does not appear to be actively supported. There is always a possibility that breaking changes may occur in Redis and lack of support for this package would expose us.

Will try it out anyway.


BrokenCode

  • Newbie
  • Posts: 4
Re: NOSQL database components
« Reply #4 on: May 23, 2017, 04:46:00 pm »
Thank you, this will help as we are considering MongoDB for other purposes

Blestan

  • Sr. Member
  • ****
  • Posts: 461
Re: NOSQL database components
« Reply #5 on: May 23, 2017, 07:05:49 pm »
you can try couchebase...
 i found several weeks ago fpc/delphi client
Speak postscript or die!
Translate to pdf and live!

BrokenCode

  • Newbie
  • Posts: 4
Re: NOSQL database components
« Reply #6 on: May 24, 2017, 05:51:10 pm »
Thanks. How is the performance, and do you possibly have a link for the client ?

JD

  • Hero Member
  • *****
  • Posts: 1848
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: NOSQL database components
« Reply #8 on: September 13, 2017, 12:25:39 am »
I've tried the https://github.com/ik5/redis_client.fpc and can't get it working.

Would love to be able to talk to Redis, memcached, ActiveMQ, and other modern tools.

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: NOSQL database components
« Reply #9 on: September 13, 2017, 04:04:53 am »
But I DID get this fork to work: https://github.com/rickvavilin/redis_client.fpc

tudi_x

  • Hero Member
  • *****
  • Posts: 532
Re: NOSQL database components
« Reply #10 on: September 13, 2017, 09:13:32 am »
were there any modifications you did to the code?
with what version of redis did it work?
thank you
Lazarus 2.0.2 64b on Debian LXDE 10

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: NOSQL database components
« Reply #11 on: September 13, 2017, 03:25:13 pm »
No modifications at the moment, but it looks like there are some needed.

The line parser doesn't work so you get meta information in your output, I've forked the project and will be working on fixes and upgrades (I need this functionality too).

As for Redis version, I grabbed the official Docker build which says 4.0.1

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: NOSQL database components
« Reply #12 on: September 14, 2017, 12:55:30 am »
This is where I'll be committing the updates: https://github.com/MFernstrom/fpc-redis-client

Trenatos

  • Hero Member
  • *****
  • Posts: 535
    • MarcusFernstrom.com
Re: NOSQL database components
« Reply #13 on: September 18, 2017, 05:07:00 am »
I spoke too soon, the driver seems to be working fine.

I'm going to be adding more commands though.

 

TinyPortal © 2005-2018