Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

surveyor pattern example #164

Open
ghost opened this issue Dec 15, 2019 · 5 comments
Open

surveyor pattern example #164

ghost opened this issue Dec 15, 2019 · 5 comments
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented Dec 15, 2019

Hi,

Hope you are all well !

Is there a simple way to convert this example, based on nanomsg, to mangos ?
ref. https://github.com/daniel-j-h/DistributedSearch

It would be awesome to have more real world use cases for mangos. ^^

Cheers,
X

@gdamore
Copy link
Contributor

gdamore commented Dec 20, 2019

That example relies on "Bond", which is a serialization format that I don't think Go supports, and that I'm completely unfamiliar with.

It might be easier to build a similar thing using slightly different technologies for the marshalling layer.

There is a demo of using the surveyor pattern in demo/survey

@gdamore gdamore added the question Further information is requested label Dec 20, 2019
@ghost
Copy link
Author

ghost commented Dec 20, 2019

my point was more about cascading requests like in this example. Like how to use a yaml file, defining the recursion for requests, and create a server with the surveyor pattern.

for the serialization, it can be msgpack or protobuf.

I mean it misses of server like example with a config file...

@ghost
Copy link
Author

ghost commented Nov 8, 2020

Hi,

Sorry to bother you again, but I would like to build this proxy server for my telegram bot.

My goal is to survey several dockerized restful apis (respondents) with a surveyor embedded into a rest a server.

Is it possible ? Can you just publish/push a basic example like that please ?

Cheers,
X

@gdamore
Copy link
Contributor

gdamore commented Nov 8, 2020

Did you look in the repo:

https://github.com/nanomsg/mangos/blob/master/examples/survey/survey.go

This doesn't include embedding inside a REST server, but that's all going to be fairly bog standard REST API stuff that depends on the REST framework you use.

@gdamore
Copy link
Contributor

gdamore commented Nov 8, 2020

The surveyor stuff does uses the mangos/SP protocols, and not REST. If you're looking for something to go out over REST you're looking for a vanilla REST (HTTP) client I think - that's not this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant