Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3BE4918A65 for ; Tue, 30 Jun 2015 15:49:10 +0000 (UTC) Received: (qmail 41124 invoked by uid 500); 30 Jun 2015 15:49:10 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 41089 invoked by uid 500); 30 Jun 2015 15:49:10 -0000 Mailing-List: contact dev-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list dev@ignite.incubator.apache.org Received: (qmail 41078 invoked by uid 99); 30 Jun 2015 15:49:09 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2015 15:49:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3828B1A6383 for ; Tue, 30 Jun 2015 15:49:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3 X-Spam-Level: *** X-Spam-Status: No, score=3 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FnBaBtN8ScHH for ; Tue, 30 Jun 2015 15:49:02 +0000 (UTC) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 24D7D4C0E5 for ; Tue, 30 Jun 2015 15:49:02 +0000 (UTC) Received: by lagx9 with SMTP id x9so19120457lag.1 for ; Tue, 30 Jun 2015 08:49:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=pedxanBDJlJHen28r8qwtPXmqPsrVrqTN3GY0dXzwV8=; b=Vu/Pz05iXCVi2DHLi8o1vXSczeOJM/MTZ8LJADXlu8FEs51QlWg5foakf043ypg624 0cgUuJ8lL56dP6R6gKhZojHSsE6VVOoKWb9bikLPPNJWkwqY8Bjc0NiP3nH+0UQnpNWv ZMqW5+B2pPPNVsJpdeW29mg/nwCIHDcypRCjUsHurvko6YJwaMFYBfsUsOyS+ZBAKW0q zyuFsxTk2PmIf+2FsRvRxIa+dub0z09dM4L8PmkhHZUE4yXlNLVEd4JyDFSkB3r7xddx KlJhucTw7znZCVSYu14ZaI8U9ig+IM9rwMO9D72So5fVywnvEe069N2h/9XUjAu33SHL ZZkA== X-Gm-Message-State: ALoCoQnh/mg56osDPf99y07QPypddEL22vgfUFTdyVc7P8pxEULDoOUZvOkyFviW48aYjrMtuOxI MIME-Version: 1.0 X-Received: by 10.152.8.102 with SMTP id q6mr20172800laa.27.1435679340977; Tue, 30 Jun 2015 08:49:00 -0700 (PDT) Received: by 10.112.218.70 with HTTP; Tue, 30 Jun 2015 08:49:00 -0700 (PDT) In-Reply-To: References: Date: Tue, 30 Jun 2015 22:49:00 +0700 Message-ID: Subject: Re: Web config download From: Alexey Kuznetsov To: dev@ignite.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11c36582217a240519be25a2 --001a11c36582217a240519be25a2 Content-Type: text/plain; charset=UTF-8 Just my thoughts. We could implement some abstraction layer for backend persistence. And in case of user download we will package with H2 as default storage. But in case of heavy load any other db could be used, but will require manual installation and configuration. We are expecting million requests per second? I think H2 will be enough? What do you think? On Tue, Jun 30, 2015 at 10:27 PM, Dmitriy Setrakyan wrote: > And what do you suggest we use as persistence on the backend? Currently we > use Mongo. > > D. > > On Tue, Jun 30, 2015 at 8:18 AM, Sergi Vladykin > wrote: > > > And there is nothing to do from scratch here, all the html and client > side > > js are the same, just switch backend. > > > > Sergi > > > > 2015-06-30 8:17 GMT-07:00 Sergi Vladykin : > > > > > I think at current stage if it takes two days to switch things, then it > > > makes sense. We will not be able to do it later. > > > > > > We will need to have a separate distribution for each supported > platform. > > > And test each individually. > > > > > > Sergi > > > > > > 2015-06-30 8:05 GMT-07:00 Dmitriy Setrakyan : > > > > > >> Guys, > > >> > > >> I would like to avoid "let's drop everything and redo from scratch" > > >> discussions. I don't think they will productively get us there. > > >> > > >> The stack was chosen because it required zero code or integration on > the > > >> server side and was easiest to implement. Let's try to answer how to > > make > > >> it downloadable in the easiest way. > > >> > > >> D. > > >> > > >> On Tue, Jun 30, 2015 at 7:52 AM, Sergi Vladykin < > > sergi.vladykin@gmail.com > > >> > > > >> wrote: > > >> > > >> > Guys, > > >> > > > >> > To be honest I don't know why we choose this stack which is > completely > > >> > alien to java when our main product is java based. I'm sure in the > > >> future > > >> > we will need better level of integration between them not only for > > >> Ignite > > >> > SQL schema import. > > >> > > > >> > Jetty it is a battle tested server, I think we can go ahead with it. > > >> > Moreover if we will not be satisfied we can replace it with > something > > >> else > > >> > easily, while I don't know how we will replace node.js in a case. > > >> > > > >> > As for JSON Alexey, please describe what kind of operations we do > with > > >> JSON > > >> > data and why we can't store it just as a String and be as DB neutral > > as > > >> > possible? > > >> > > > >> > Sergi > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > 2015-06-30 7:31 GMT-07:00 Alexey Kuznetsov >: > > >> > > > >> > > Sergey, > > >> > > > > >> > > 1. How many connections Jetty + H2 could handle? > > >> > > Do you have any experience? > > >> > > > > >> > > 2. What is the best way to store JSON into db and later read JSON > > from > > >> > db? > > >> > > > > >> > > 3. Persistence feature could not be separated, because > > >> CacheTypeMetadata > > >> > is > > >> > > a part of CacheConfiguration. > > >> > > > > >> > > Dmitriy, > > >> > > What do you think about dropping nodejs and mongoDB in favor of > > >> > jetty+h2 ? > > >> > > > > >> > > One more benefit of using java that we could reuse code from > Ignite > > >> > Schema > > >> > > Import > > >> > > for connecting to database (using JDBC) and reuse code that > > generates > > >> > XML > > >> > > and POJO classes. > > >> > > > > >> > > Also we could build and package Web Config with Maven I think. > > >> > > > > >> > > Actually we do not have much code at server side. So we could > switch > > >> in a > > >> > > couple of days I think. > > >> > > > > >> > > Thoughts? > > >> > > > > >> > > > > >> > > On Tue, Jun 30, 2015 at 6:25 PM, Sergey Evdokimov < > > >> > sevdokimov@gridgain.com > > >> > > > > > >> > > wrote: > > >> > > > > >> > > > I doubt that people will install docker to run WebConfig. > > >> > > > > > >> > > > If we expect running WebConfig on user machine node.js + mongoDB > > is > > >> a > > >> > bad > > >> > > > choose. Most of our users are java developers, the plain way is > to > > >> use > > >> > > > Jetty + H2 and pack whole WebConfig to single jar. User will be > > >> start > > >> > it > > >> > > > using "java -jar webConfig.jar" without unnecessary actions. > > >> > > > > > >> > > > As I understand, only Persistence feature requires installation > > >> > WebConfig > > >> > > > on local machine, my be you should create separated project > > >> > > > PersistenceGenerator that will use Jetty+H2 and will be packed > to > > >> > single > > >> > > > jar. > > >> > > > > > >> > > > On Tue, Jun 30, 2015 at 1:24 PM, Alexey Kuznetsov < > > >> > > akuznetsov@gridgain.com > > >> > > > > > > >> > > > wrote: > > >> > > > > > >> > > > > What about docker image? > > >> > > > > We will create docker image with installed nodejs, mongo and > > >> Ignite > > >> > Web > > >> > > > > Config. > > >> > > > > Will this solve this problem? > > >> > > > > > > >> > > > > On Mon, Jun 29, 2015 at 4:07 PM, Dmitriy Setrakyan < > > >> > > > dsetrakyan@apache.org> > > >> > > > > wrote: > > >> > > > > > > >> > > > > > From my standpoint, I would like the web-config-download to > > come > > >> > as a > > >> > > > zip > > >> > > > > > file without any extra installation steps if possible. > > >> > > > > > > > >> > > > > > Ideally, a user should be able to just download it, unzip > it, > > >> and > > >> > > start > > >> > > > > > using it. > > >> > > > > > > > >> > > > > > D. > > >> > > > > > > > >> > > > > > On Mon, Jun 29, 2015 at 12:33 AM, Alexey Kuznetsov < > > >> > > > > > akuznetsov@gridgain.com> > > >> > > > > > wrote: > > >> > > > > > > > >> > > > > > > Igniters, > > >> > > > > > > > > >> > > > > > > We are working on Ignite Web Config (ignite-843) and very > > >> close > > >> > to > > >> > > > > first > > >> > > > > > > version of it. > > >> > > > > > > As usual everything could be launched from sources, but > for > > >> > > usability > > >> > > > > > issue > > >> > > > > > > I'm thinking > > >> > > > > > > about a kind of installer for web config. > > >> > > > > > > > > >> > > > > > > In web config we are using: nodejs, mongodb, angular. > > >> > > > > > > > > >> > > > > > > Does any one has experience of packaging web applications > > for > > >> > later > > >> > > > > > > deployment? > > >> > > > > > > > > >> > > > > > > Any ideas are very appreciated. > > >> > > > > > > > > >> > > > > > > -- > > >> > > > > > > Alexey Kuznetsov > > >> > > > > > > GridGain Systems > > >> > > > > > > www.gridgain.com > > >> > > > > > > > > >> > > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > -- > > >> > > > > Alexey Kuznetsov > > >> > > > > GridGain Systems > > >> > > > > www.gridgain.com > > >> > > > > > > >> > > > > > >> > > > > >> > > > > >> > > > > >> > > -- > > >> > > Alexey Kuznetsov > > >> > > GridGain Systems > > >> > > www.gridgain.com > > >> > > > > >> > > > >> > > > > > > > > > -- Alexey Kuznetsov GridGain Systems www.gridgain.com --001a11c36582217a240519be25a2--