* * *

Author Topic: NOSQL database components  (Read 2266 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: 7722
  • 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: 456
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: 1607
Windows (10, 7) - Lazarus 1.8RC5/FPC 3.0.4 (also Delphi occasionally), NewPascal
Linux Mint Cinnamon  - Lazarus 1.8RC5/FPC 3.0.4
Indy 10.6 series; mORMot; Zeos 7.2.1; SQLite, Firebird, PostgreSQL & MariaDB

Trenatos

  • Full Member
  • ***
  • Posts: 242
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

  • Full Member
  • ***
  • Posts: 242
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

  • Sr. Member
  • ****
  • Posts: 346
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

Trenatos

  • Full Member
  • ***
  • Posts: 242
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

  • Full Member
  • ***
  • Posts: 242
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

  • Full Member
  • ***
  • Posts: 242
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.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus