by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 01 17:20

    stevehu on master

    upgrade to version 2.0.17-SNAPS… (compare)

  • Aug 01 17:16

    stevehu on 1.6.x

    upgrade to version 1.6.27-SNAPS… (compare)

  • Aug 01 12:39

    stevehu on 2.0.16

    (compare)

  • Aug 01 11:39

    stevehu on master

    light-bot checkin CHANGELOG.md (compare)

  • Aug 01 03:46

    stevehu on 1.6.26

    (compare)

  • Aug 01 03:02

    stevehu on 1.6.x

    light-bot checkin CHANGELOG.md (compare)

  • Aug 01 03:00

    stevehu on 1.6.x

    upgrade to version 1.6.26 befor… (compare)

  • Aug 01 02:16

    stevehu on 1.6.x

    light-bot checkin CHANGELOG.md (compare)

  • Aug 01 01:19

    stevehu on 1.6.x

    light-bot checkin CHANGELOG.md (compare)

  • Aug 01 01:15

    stevehu on master

    upgrade to version 2.0.16 befor… (compare)

  • Aug 01 01:10

    stevehu on 1.6.x

    upgrade to version 1.6.25 befor… (compare)

  • Jul 31 20:46
    stevehu commented #744
  • Jul 30 11:44
    stevehu commented #743
  • Jul 30 11:44
    stevehu commented #744
  • Jul 30 11:43

    stevehu on issue743

    (compare)

  • Jul 30 11:43
    stevehu closed #743
  • Jul 30 11:43

    stevehu on master

    fixes #743 Handle the limit fil… (compare)

  • Jul 30 11:43
    stevehu closed #746
  • Jul 30 11:43
    stevehu opened #746
  • Jul 30 11:43

    stevehu on issue743

    fixes #743 Handle the limit fil… (compare)

Relivian
@Relivian
one sec
nothing yet
Steve Hu
@stevehu
Let me check the logs.
Steve Hu
@stevehu
There are two emails sent to you in the log and I have sent you the detailed log in email.
I have sent you and me another email from Thunderbird Email and mine is received.
Relivian
@Relivian
Got it.
Steve Hu
@stevehu
Where did you find it?
I check the email server and everything seems OK.
Relivian
@Relivian
Only yours I meant. The two emails you mentioned are still not there. I'll go through the folders again
Found it. Had to switch the browser
Looks like my firefox has an issue with showing content of certain folders
Steve Hu
@stevehu
That is odd.
Relivian
@Relivian
Yes, no problem with the app. Looks all fine :) Thanks
:thumbsup:
Steve Hu
@stevehu
Thanks for the confirmation. Enjoy.
thirtysixmm
@thirtysixmm
I am planning to extend the Prometheus handler to expose some additional JVM metrics. Any pointers on what is the best way to do it?
Steve Hu
@stevehu
I think this has been done by @chenyan71 at the 1.6.x branch. Take a look at this and let me know if it is enough. I will merge it into the master. networknt/light-4j@b552f85
Actually, both 1.6.x and 2.0.x has the same codebase and it is controlled by enableHotspot in the config file.
thirtysixmm
@thirtysixmm
Thank you for the quick response.
thirtysixmm
@thirtysixmm
@stevehu Thank you for support. It works perfectly after upgrading to 2.0.13.
Steve Hu
@stevehu
@thirtysixmm Thanks a lot for your confirmation. Happy coding!!!
thirtysixmm
@thirtysixmm
Is there any we can limit the number of thread a service start? a 25 user stress testing of the service has started ~4500 threads during the testing period and the thread count is not coming down even after the test is over.
Steve Hu
@stevehu
Yes, you can control it in the server.yml and the document can be found at https://doc.networknt.com/concern/server/
thirtysixmm
@thirtysixmm
Thank you. I will go through that. Any pointers on why the threadcount is not coming down?
Steve Hu
@stevehu
You can confirm both io thread count and worker thread count.

Number of IO thread

ioThreads: 1

Number of worker thread

workerThreads: 100

thirtysixmm
@thirtysixmm
Thank you
Debanshu Sinha
@debanshu
Hey, so I was updating to jdk11 - and ran into a conflicting version of okhttp3 packaged with the light-consumer-4j package 2.0.13.
Any reason why okhttp3 is bundled within the light-consumer-4j jar? I thought it used the light http2client internally.
Debanshu Sinha
@debanshu
The 1.6.x version of light-consumer-4j does not include okhttp3 however.
Steve Hu
@stevehu
the jaeger-tracer was included for the Jdk11 master branch only.
Debanshu Sinha
@debanshu
Got it. Thanks @stevehu
Debanshu Sinha
@debanshu
So my jdk 11 update went fairly smoothly.
One thing I noticed while adding the rate-limit middlware, the artifact id in the doc is out of date
https://www.networknt.com/concern/limit/ should be renamed to rate-limit in the code snippet.
Steve Hu
@stevehu
@debanshu Thanks a lot for pointing it out. I will update the document to show the difference between two versions.
Steve Hu
@stevehu
@debanshu The document for rate-limit has been updated. Thanks. networknt/light-doc#181
Steve Hu
@stevehu

We have released 1.6.20 for jdk8 and 2.0.14 for jdk11 as scheduled. Both releases are backward compatible with some defects addressed, and some enhancements added.

For more all the PRs included in each release, please visit https://trello.com/b/189msq9S/release-schedule or individual release note.

Steve Hu
@stevehu

Start your online business to help small businesses

Due to the global pandemic, small businesses are suffering the most, and they need help. They are the engine of the economy as they hire the majority of employees. Although we are in the early reopening, small business owners are facing too many issues regarding safety.

In my opinion, there are three types of businesses that need help immediately: Farmers, Restaurants, and Grocery Stores.

To help these businesses, I have developed an application to enable these businesses to operate online with no contact with customers. We plan to charge a 2% service fee on the total sales once the platform is ready. The application functionality is completed; however, the UI needs some extra work. In a period of promotion stage, I am looking for individual and corporate partners.

Small business owner: One time $500 for the first year service.
Website designer: $200 join the team, and you can share 1% sales if you find a business and bring it online.
Referral: get 0.1% of sales for the first three months on the site if the owner confirms that he/she heard our service from you.

Here are several videos using a restaurant as a demo.

https://www.youtube.com/watch?v=fNnRjrTSQ-w

https://www.youtube.com/watch?v=lCnUjcChIsM

https://www.youtube.com/watch?v=Hl3pr4nOCd0

For light-4j contributors, you are automatically a member if you help businesses to go online.
Steve Hu
@stevehu
I have added a new document to show users how to get request body, query parameters, path parameters, headers and cookies in the request handler. Please review and let me know what else is missing. Thanks. https://doc.networknt.com/concern/business-handler/
PeterKieu
@PeterKieu
Last year I must dig into all Light4j and original Undertow code to set header, body, data form part etc. This will be great help for other guys 👍👍
I think that you need more stuff for file upload/download with limit file size config...
Steve Hu
@stevehu
@PeterKieu One of the customers is working on a document management API with some PDF file upload/download. So far, we only need to compress/decompress it to increase the transfer rate. I think it is a good idea to limit the upload file size and it is controlled in the Undertow with only a parameter. It would be better to put it into the server.yml to ensure that nobody abuse the upload limit. Could you please open an issue in light-4j? Thanks.
thirtysixmm
@thirtysixmm
Any tutorial on websockets? I am building a chat application. I looked into the code https://github.com/networknt/light-example-4j/tree/master/websocket and this code is throwing me an error
Unable to load config 'values' with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.

Unable to load config 'startup' with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.

Unable to load config 'startup' with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.

Unable to load config 'app-status' with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.

Unable to load config 'handler' with extension yml, yaml and json from external config, application config and module config. Please ignore this message if you are sure that your application is not using this config file.

23:02:41.790 [main] ERROR com.networknt.server.Server middlewareInit - Unable to start the server - no route handler provider available in service.yml

23:02:41.802 [main] ERROR com.networknt.server.Server init - Server is not operational! Failed with exception

java.lang.RuntimeException: Unable to start the server - no route handler provider available in service.yml
    at com.networknt.server.Server.middlewareInit(Server.java:209)
    at com.networknt.server.Server.start(Server.java:159)
    at com.networknt.server.Server.init(Server.java:117)
    at com.networknt.server.Server.main(Server.java:99)
Failed to start server:Unable to start the server - no route handler provider available in service.yml
Steve Hu
@stevehu
I think the light-bot upgrade the light-4j version to the latest but the configuration is not updated. Let me get it fixed. Thanks for raising it.
thirtysixmm
@thirtysixmm
Thank you @stevehu
Steve Hu
@stevehu
The peer-to-peer is upgraded to 2.0.x with Java 11. networknt/light-example-4j#621
Steve Hu
@stevehu
The client-to-server example was upgraded to 2.0.x networknt/light-example-4j#622
thirtysixmm
@thirtysixmm
Thank you @stevehu . The example is now working.
Steve Hu
@stevehu
Cool. I am glad it helps.
PeterKieu
@PeterKieu

@PeterKieu One of the customers is working on a document management API with some PDF file upload/download. So far, we only need to compress/decompress it to increase the transfer rate. I think it is a good idea to limit the upload file size and it is controlled in the Undertow with only a parameter. It would be better to put it into the server.yml to ensure that nobody abuse the upload limit. Could you please open an issue in light-4j? Thanks.

@stevehu I opend an issue here networknt/light-4j#743

Steve Hu
@stevehu

We have released 1.6.26 for jdk8 and 2.0.16 for jdk11 as scheduled. Both releases are backward compatible with some defects addressed, and some enhancements added.

For more all the PRs included in each release, please visit https://trello.com/b/189msq9S/release-schedule or individual release note.

_