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

Running things on a server as if there were in the front end seamlessly #5

Closed
jlebrech opened this issue Jan 15, 2015 · 5 comments
Closed

Comments

@jlebrech
Copy link

Say I something that need to call on the server, could have a route on a backend server which did an RPC style call on that server.

On that server you could have a controller which translates those calls to method calls or even compile an interface that does the connection stuff seamlessly as if you were just calling a local method on a class.

Say in Clearwater you do:

Server::MyClass.do_class_method(param1, param 2)

and that would send a message to the backend to run that class, and send the result back.

and in clearwater you would just have to set a baseurl and set a session id to send for those requests.

@jgaskins
Copy link
Member

If I understand you correctly, that's the goal of the API client mentioned in #1. One of the main ideas I had for Clearwater is for it to be just another consumer of your API, similar to an iOS or Android app. I think a good RPC-style abstraction would be interesting, though.

@jlebrech
Copy link
Author

yes the API mentioned in #1 would be the way to access resources presented
in a Restful way.

My idea is most RPC, like sending rails console commands over the wire with
a permissions layer if that makes sense.

On Fri, Jan 16, 2015 at 4:31 AM, Jamie Gaskins notifications@github.com
wrote:

If I understand you correctly, that's the goal of the API client mentioned
in #1 https://github.com/jgaskins/clearwater/issues/1. One of the main
ideas I had for Clearwater is for it to be just another consumer of your
API, similar to an iOS or Android app. I think a good RPC-style abstraction
would be interesting, though.


Reply to this email directly or view it on GitHub
https://github.com/jgaskins/clearwater/issues/5#issuecomment-70207084.

@krainboltgreene
Copy link

Is this something that still needs to be open?

@jgaskins
Copy link
Member

Good question. I've had some time to think about this now and, while I think RPC can be a great abstraction, I'm not sure it fits into my overall vision for Clearwater. That vision is basically that the framework provides the necessities for making an app work in the browser:

  • URL-based routing
  • API client
  • some sort of ORM or other data management facility
  • rendering
  • most likely authentication

Everything else would probably need to be added separately.

@jlebrech I'm not sure the RPC abstraction is used enough to warrant being included in the base framework. I think it'd be fantastic to see an Opal RPC implementation, though, that could be integrated into a Clearwater app. I appreciate the suggestion and your discussion on it, though. 👍

@jlebrech
Copy link
Author

I think it should be a side project, it would be compatible with volt too
On 19 Apr 2015 18:06, "Jamie Gaskins" notifications@github.com wrote:

Good question. I've had some time to think about this now and, while I
think RPC can be a great abstraction, I'm not sure it fits into my overall
vision for Clearwater. That vision is basically that the framework provides
the necessities for making an app work in the browser:

  • URL-based routing
  • API client
  • some sort of ORM or other data management facility
  • rendering
  • most likely authentication

Everything else would probably need to be added separately.

@jlebrech https://github.com/jlebrech I'm not sure the RPC abstraction
is used enough to warrant being included in the base framework. I think
it'd be fantastic to see an Opal RPC implementation, though, that could be
integrated into a Clearwater app. I appreciate the suggestion and your
discussion on it, though. [image: 👍]


Reply to this email directly or view it on GitHub
#5 (comment)
.

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

No branches or pull requests

3 participants