vaadin / collaboration-engine

The simplest way to build real-time collaboration into web apps
https://vaadin.com/collaboration
Other
3 stars 1 forks source link

Enable testing the app in production mode without license #17

Open pekam opened 3 years ago

pekam commented 3 years ago

@pekam commented on Tue Nov 10 2020

It should be possible to test the production build of an application that uses CE without using a license, in order to verify e.g. that the app works on IE11 or to run performance tests.

By default, CE will throw if it's used in production mode without a valid license file. To support this use case, there should be a new mode that enables CE when starting the app in production mode, but only for one hour to prevent using it actually in production. One hour should be enough time to conduct any needed testing. Restarting the app enables it again for one hour.

When the hour has passed, using CE should throw an exception, instead of silently failing like when exceeding the user quota. The behavior should be the same as when running in production mode without a license file.

To enable this mode there should be a new configuration property, which can be configured in the same ways as vaadin.ce.dataDir.

Naming proposal: vaadin.ce.testProductionMode

Question: Should the mode also enable productionMode without explicitly setting that property as well? On one hand, that is an extra feature. On the other hand, (depending on the naming) testProductionMode implies that this flag is all that is needed to test in production mode. But then again, it has the ce. prefix, which implies that the behavior is scoped to Collaboration Engine.


@Legioth commented on Wed Nov 18 2020

There's also the case for running a demo server and such that should not need paying for user seats but there should still be some kind of limitation to prevent infinite use. One idea for this would be to automatically delete any Topic after a delay of e.g. 15 minutes. This idea still needs some consideration since 15 minutes after last activity wouldn't have a big impact on the form binding use case whereas 15 minutes after the topic was created might interfere with demoing the application.


@pekam commented on Mon Nov 23 2020

Use cases: