Giter Club home page Giter Club logo

bertgate's People

Contributors

hey-jude avatar mprymek avatar suddenrushofsushi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bertgate's Issues

Tag new versions?

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 ๐Ÿ‘

Non-blocking handling request

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

Make it secure

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

2 suggestions

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.