Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Sergei Ivanov
    @sergei-ivanov
    the plugin will use protoc to create java sources in target/generated-sources, those sources will be automatically picked up by java compiler, and automatically packaged into the resulting jar artifact
    Asif Iqbal
    @asif31iqbal
    I see
    Sergei Ivanov
    @sergei-ivanov
    normally, Maven target directory is added to .gitignore file, so that its contents are never committed into git
    and when you run mvn clean install, target is removed and all java sources are re-generated from proto files
    Asif Iqbal
    @asif31iqbal
    ok I see
    Sergei Ivanov
    @sergei-ivanov
    even better, the generated java sources should be automatically bundled into the your-project-sources.jar
    Asif Iqbal
    @asif31iqbal
    ok
    Sergei Ivanov
    @sergei-ivanov
    so when your IDE imports that project, it should resolve the generated java files automatically
    that's why I am saying you probably need to do the very minimum to set the plugin up
    and go with the defaults wherever possible
    Asif Iqbal
    @asif31iqbal
    yeah i understand
    Sergei Ivanov
    @sergei-ivanov
    so probably a small separate Maven project for your proto files will be a good choice
    in its own git repo and with its own build/release lifecycle
    Asif Iqbal
    @asif31iqbal
    yes that's exactly what I am gonna do
    Sergei Ivanov
    @sergei-ivanov
    then you can share the resulting artifact between multiple other projects that actually deal with sending and receiving the messages
    Asif Iqbal
    @asif31iqbal
    yeah
    one thing, if you don't mind
    kinda unrelated to my original question
    Sergei Ivanov
    @sergei-ivanov
    if it is public on github, feel free to drop a link here
    I'll take a quick look
    Asif Iqbal
    @asif31iqbal
    no unfortunately it's not public
    it's a private project in BitBucket
    Sergei Ivanov
    @sergei-ivanov
    also, go through the documentation, there are some usage examples there
    fair enough
    Asif Iqbal
    @asif31iqbal
    ok
    can i ask the other question
    Sergei Ivanov
    @sergei-ivanov
    and gRPC people have provided some configuration examples too
    sure
    Asif Iqbal
    @asif31iqbal
    in grpc...
    I have benn able to set up the server and client and pass messages betwen them
    one thing I was curious though
    is the maximum number of simultaneous connections the server can accept
    because my server will be doing some heavily loaded multi-threaded work inside itself...so the number of simultaneous connections matters
    like...
    if I am running the server on a 32-thread machine
    and the number of simultaneoous connections is 4
    it makes sense to give each client request a thread pool of size 8 or so
    Sergei Ivanov
    @sergei-ivanov
    I believe that gRPC runs on the back of Netty, and you should look into Netty's documentation
    Asif Iqbal
    @asif31iqbal
    oh thanks
    Sergei Ivanov
    @sergei-ivanov
    and don't forget that the JVM, and Netty, need to use CPU too
    because Netty uses async I/O
    Asif Iqbal
    @asif31iqbal
    hmm
    Sergei Ivanov
    @sergei-ivanov
    but I am afraid I cannot give you a good gRPC/Netty tuning advice
    Asif Iqbal
    @asif31iqbal
    no no
    I think that was good
    Sergei Ivanov
    @sergei-ivanov
    good luck with your project!
    Asif Iqbal
    @asif31iqbal
    thanks
    PG
    @pgeorge26
    hi folks
    it looks like the plugin can't find protobuf 3.1.0 executable for osx-x86_64