mprymek / bertgate Goto Github PK
View Code? Open in Web Editor NEWKind-of-compatible BERT-rpc server and client for Elixir
License: Do What The F*ck You Want To Public License
Kind-of-compatible BERT-rpc server and client for Elixir
License: Do What The F*ck You Want To Public License
In the README:
for the mix.exs dep include, it should be:
:bert_gate instead of :bertgate
Took me awhile to figure that out. (still learning Elixir)
Also, if you add a @moduledoc for your mix tasks, they would show up when you run mix help
Cool project by the way, first time I've used BERT-RPC.
Is it possible as below?
$ mix sever --port=9000 --public_module=Bert,CalcPublic
Or, initial option code in mix.exs?
Hello.
In your README you mention: it isn't secure: you can still be DDOSed by excessive atom creation
.
Do you have any idea to make more secure to avoid DDOS and crash the VM ?
What do you think about the use of the [:safe] option in the :erlang.term_to_binary/2 and :erlang.binary_to_term/2 - which will allow to safely decode without creating new atoms ?
Regards
Hello,
Thank you for your efforts in writing this library, would it be possible for you to tag your releases?
Your most recent jump to elixir 1.6 introduced a breaking change to a production app. Although we are now using a commit sha I believe breaking changes are more easily communicated via semantic versioning.
Just a suggestion, thanks again ๐
Hello.
I looked at your project which is really good .
I used for now to benchmark different solutions for a RPC solution using Elixir using TCP and it looks like promising (similar to Thrift) and faster my own RPC solution.
Just I'm wonder why do you use blocking (synchronous) request handling ?
lib/server.ex:140
defp receive_packet(transport,socket) do
# this is a blocking entrypoint -> we will use infinity here
<<payload_size::size(32)>> = recv(transport,socket,4,:infinity)
data = recv(transport,socket,payload_size,5000)
Bert.decode(data)
end
Why you don't use non-blocking (asynchronous) model which will lead to catch more requests and use data streaming to reunite the TCP packets ?
Regards
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.