News for hackers. Stuff that matters.
Re:Rust and RPC at OkCupid by vitno on Tuesday March 21, 2017 @11:15AM (#13922896)
This is my project! Ask me any questions if you have them. This was a fun project to work on.
Re:Rust and RPC at OkCupid by steveklabnik on Tuesday March 21, 2017 @12:10PM (#13923552)
This looks great! I'm psyched you are enjoying Rust.

Once you end up with something in production, if you're interested on being on https://www.rust-lang.org/en-US/friends.html, there's a link at the bottom of the page :)

Re:Rust and RPC at OkCupid by vitno on Tuesday March 21, 2017 @01:33PM (#13924363)
I'd love that. I'll definitely let you all know when that time comes.
Re:Rust and RPC at OkCupid by steveklabnik on Tuesday March 21, 2017 @01:47PM (#13924482)
Awesome. Don't hesitate to reach out if you ever need anything.
Re:Rust and RPC at OkCupid by otterley on Tuesday March 21, 2017 @09:58PM (#13927971)
Yay XDR! I still haven't heard a good explanation as to why Google invented Protocol Buffers when XDR already existed and was mature (it powers NFS).
Re:Rust and RPC at OkCupid by Zikes on Tuesday March 21, 2017 @11:29PM (#13928274)
Literally guessing here, but does XDR support backwards compatibility with updated definitions? Protobufs let you add a property to a definition as long as it's at the end of the object definition, yet objects encoded in the old definition can still be decoded with it and vice versa.
Re:Rust and RPC at OkCupid by tveita on Tuesday March 21, 2017 @07:38PM (#13927303)
> We use XDR - RFC 4506 and RPCv2 - RFC 1831 to communicate between our servers.

I see the appeal in using the same format everywhere, but it seems like they'd have a easier time using something with more mindshare, like Protocol Buffers, or even Thrift or Cap'n Proto.

All of those have Rust implementations, for instance, so you wouldn't have to implement your own parser.

Re:Rust and RPC at OkCupid by int_handler on Tuesday March 21, 2017 @08:46PM (#13927668)
Completely agree. I was wondering the same thing as I read this.
Re:Rust and RPC at OkCupid by vitno on Tuesday March 21, 2017 @11:09PM (#13928214)
OkCupid is over a decade old. XDR was pretty good back when people started writing our services.

My goal here isn't to migrate our RPC system... yet. My goal is to stand up Rust services in production. I need to be able to issue calls between services and thus, I need it to speak XDR. Migrating your RPC system in a production website is a non-trivial task.

I've done some investigation into switching to something like flatbuffers or cap'n proto. That's a project for another day though.

Re:Rust and RPC at OkCupid by int_handler on Tuesday March 28, 2017 @09:00PM (#13982367)
That makes sense. Thanks for explaining!