Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 03 2018 11:28
    marcinczeczko labeled #402
  • Apr 03 2018 11:28
    marcinczeczko labeled #402
  • Apr 03 2018 11:28
    marcinczeczko milestoned #402
  • Apr 03 2018 11:28
    marcinczeczko milestoned #402
  • Apr 03 2018 11:27
    marcinczeczko opened #402
  • Apr 03 2018 11:27
    marcinczeczko opened #402
  • Apr 03 2018 11:19
    marcinczeczko commented #396
  • Apr 03 2018 11:18
    marcinczeczko edited #396
  • Apr 03 2018 11:18
    marcinczeczko edited #396
  • Apr 03 2018 11:17

    marcinczeczko on 398-config-defaults

    (compare)

  • Apr 03 2018 11:17

    marcinczeczko on backpressure-and-configs

    Reorganized standaolone & examp… Merge branch 'milestone/backpre… Set a version of target release and 16 more (compare)

  • Apr 03 2018 11:17
    marcinczeczko closed #400
  • Apr 03 2018 07:49
    marcinczeczko synchronize #400
  • Apr 03 2018 07:49

    marcinczeczko on 398-config-defaults

    Set target version for this bra… Merge branch 'milestone/backpre… (compare)

  • Apr 03 2018 07:48

    marcinczeczko on backpressure-and-configs

    Set target version for this bra… (compare)

  • Apr 03 2018 07:44
    marcinczeczko closed #398
  • Apr 03 2018 07:44
    marcinczeczko closed #398
  • Apr 03 2018 07:44
    marcinczeczko commented #398
  • Apr 03 2018 07:40
    marcinczeczko synchronize #400
  • Apr 03 2018 07:40

    marcinczeczko on 398-config-defaults

    Documentation fix. #394 Added encoding of uri para… Write a test case for requestin… and 5 more (compare)

Tomasz Michalak
@tomaszmichalak

If we talk about providing full HTML markup for your banner or other targeted component I recommend you to write dedicated extension (called Knot: https://github.com/Cognifide/knotx/wiki/Knot#how-to-implement-your-own-knot). It can call the targeting service which responds with HTML (not JSON) and then put it as fragment content (simply replace fragment markup). To be honest we have a similar solution in our plans. We have the dedicated repository for that extensions: https://github.com/Knotx/knotx-extensions.

Could you please create an issue in this repository and describe your use case in details. It will help us when we will prepare backlog for the next milestone.

Leo D'Angelo
@ldangelo
@tomaszmichalak Thank you for the response. I will create an issue in the backlog. You pretty much got the use case though. I will authenticate with oauth, the oauth implementation we use returns a companyid, based on the company id I will display a company specific banner (as well as some other company specific metrics). I’m going to store a ‘template’ in S3 and then use knotx to render the template. This is much less overhead than using a CMS as I don’t want to have to setup 40-90k individual configurations.
Tomasz Michalak
@tomaszmichalak
Nice, lets chech JWT tokens to keep an authentication data. It will boost your scaling options - you can then set up ELB in front of your Knot.x instances. Having Apache in front of Knot.x would be also useful to redirect all nonHTML request to content source
Knot.x can be easily scaled both verticaly and horizontaly (thanks event bus which can be clustered - Hazelcast)
Nice, lets chech JWT tokens to keep an authentication data. It will boost your scaling options - you can then set up ELB
Tomasz Michalak
@tomaszmichalak
@ldangelo do you have your endpoint with company data implemented? It can be also a part of Knot.x - you can connect directly do DB from Adapter. You omit one HTTP call. We plan to share new tutorial with similar solution this/next week.
Leo D'Angelo
@ldangelo
@tomaszmichalak no I don’t have the end point yet. I would love to see the tutorial. I was actually planning on submitting my solution to the community but I’m sure you guys will do it better than I.
Tomasz Michalak
@tomaszmichalak
It would be great to see
your solution
We could make code review :)
Leo D'Angelo
@ldangelo
@tomaszmichalak happy to contribute what I come up with. I would appreciate the code review. I have a similar solution in spring and I’m hitting some performance issues. I have 40k non-profit’s with 5-15 users hitting this solution daily so can also provide some benchmarks against spring.
Maciej Laskowski
@Skejven
hello @ldangelo, that would be great - let us know when you have something to share, we are also going to show some performance statistics (currently in Code Review) - it will be available probably in this week @ GitHub wiki
Tomek Niedźwiedź
@toniedzwiedz
Hello
I want to connect to a template repository over HTTP and I wanted to use the REST service example as a starting point
The file system repository configuration looks different from what's documented there
"knotx:io.knotx.FilesystemRepositoryConnector": {
      "options": {
        "config": {
          "catalogue": "./library/"
        }
      }
    }
Tomek Niedźwiedź
@toniedzwiedz
Would this work?
   "knotx:io.knotx.HttpRepositoryConnector": {
      "options": {
        "config": {
          "clientDestination": {
            "domain": "localhost",
            "port": 80
          }
        }
      }
    }
    "knotx:io.knotx.KnotxServer": {
      "options": {
        "config": {
          "repositories": [
            {
              "path": "/content/.*",
              "address": "knotx.core.repository.http"
            },
         //routing, etc.
Maciej Laskowski
@Skejven
@toniedzwiedz do you use released 1.0 or snapshot from master?
please remember, that documentation on wiki is actual for the version from master
1.0.0 documentation is here: https://github.com/Cognifide/knotx/wiki/Documentation-1.0.0
there might be small differences - not much changes were since we released 1.0 but there was change in FilesystemRepository (https://github.com/Cognifide/knotx/blob/master/CHANGELOG.md)
and with default configuration for repositories that comes with Knot.x
Maciej Laskowski
@Skejven
what do you want to achieve exactly?
Tomek Niedźwiedź
@toniedzwiedz
@Skejven priv
Kofi Boakye
@2kodes
hello
??
Maciej Laskowski
@Skejven
hi @2kodes , will you create a pull request today with fix fo the unwatned \ in knotx-stack.json?
Kofi Boakye
@2kodes
hi @Skejven done that. though i hope i did it in the correct repo :)
Tomasz Michalak
@tomaszmichalak
@2kodes Hi, we answered your questions on google group
can you please close questions that are answered ?
Kofi Boakye
@2kodes
@tomaszmichalak oh ok..will check and do.. didnt know it was pending
Tomasz Michalak
@tomaszmichalak
thank you :)
Kofi Boakye
@2kodes
do i do that br marking an answer as the "best answer"??
Tomasz Michalak
@tomaszmichalak
yep
Kofi Boakye
@2kodes
ok
done..thanks
Kofi Boakye
@2kodes
hello
Tomasz Michalak
@tomaszmichalak
hello
how about 1.4 release, have you checked it?
we would check distribution size this week and fix it probably in 1.4.1
Kofi Boakye
@2kodes
yes its the same. the two pictures i showed in the google group are of the 1.4 standalone/stack and the 1.4 example project... @tomaszmichalak
anyways thanks..will manually take out the ones i dont need or which are not needed....
the jars i mean
Kofi Boakye
@2kodes
took out the jruby jar....22mb.. slimmed things down appreciably
Maciej Laskowski
@Skejven
hi @2kodes sorry for such long time on responsing https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/knotx/5jo-FwJufqU but I just got back from vacation - I've answered in the topic, could you attach there information on how to reproduce the situation you described?
Kofi Boakye
@2kodes
hi , i have answered and attached a gist @Skejven