Hi Claudius ! Thanks for your reply, that's what I actually did and I embed it in a Foxx service to reuse it in others Foxx.
I was stuck with the request's encryption but that's my feedback about it (maybe it would be helpful, ref : https://github.com/arangodb/arangodb/issues/1986 ) : Signing the AWS request requires the createHmac function from crypto node's package : crypto.createHmac('sha256', 'a secret').update(stringToSign).digest('base64'); ArangoDB implements : crypto.hmac('a secret', 'stringToSign', 'sha256') which return a String in *hexadecimal encoding* . So all we need is call the function like this to make a AWS-compliant encryption : new Buffer(crypto.hmac('a secret', 'stringToSign', 'sha256'), 'hex').toString('base64'); Florian 2016-09-13 9:37 GMT+02:00 Claudius Weinberger <[email protected]>: > Hi Florian, > > as far as I know SQS have a HTTP interface. You can use HTTP (TLS 1 only > atm) from FOXX and it has its own queue. Maybe that would be helpful. > > Claudius > > Am Samstag, 10. September 2016 09:28:26 UTC+2 schrieb Florian: >> >> Hi everyone, >> >> I would like to use an AWS SQS (Simple Queue Service) to push some events >> ( update_entity, create_entity, ...) from my Foxx microservices, in order >> to process those events in another service ( which could be another Foxx >> service or not ). >> >> But as ArangoDB Foxx doesn't manage node packages like a NodeJS >> application, the aws-sdk package doesn't work (TypeError: >> util.crypto.lib.createHash is not a function) >> >> Is there any workaround to push events from a Foxx microservice to a >> queue system (AWS or others) ? >> >> I was wondering if I had to put a NodeJS app layer in front of my Foxx >> service but I think I'll loose the advantages of using Foxx (and I already >> have a API Gateway in front of the Foxx services, I think so 3 app layers >> is too much) >> >> Thanks in advance ! >> Florian >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "ArangoDB" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/arangodb/Ptw8hX9kbLs/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "ArangoDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
