# |
Dec 5th 2017, 19:38 |
inoas |
I am maintaining cakephp2 and 3 projects so |
# |
Dec 5th 2017, 19:38 |
inoas |
not interested :-)? |
# |
Dec 5th 2017, 19:37 |
hmic |
inoas, i know about elixir |
# |
Dec 5th 2017, 19:37 |
inoas |
5-6min for the demo, then other things |
# |
Dec 5th 2017, 19:37 |
hmic |
whatever, if cake(php) and websockets, will be ratchet likely |
# |
Dec 5th 2017, 19:37 |
inoas |
hmic: let me know what you think about that :p @yt |
# |
Dec 5th 2017, 19:37 |
inoas |
WyriHaximus: good point |
# |
Dec 5th 2017, 19:37 |
WyriHaximus |
inoas: will check it out tomorrow, about to head off and relaxe :) |
# |
Dec 5th 2017, 19:36 |
inoas |
WyriHaximus: note that the youtube link I send is NOT about node ;-) |
# |
Dec 5th 2017, 19:36 |
hmic |
can do with both |
# |
Dec 5th 2017, 19:36 |
inoas |
whereas the other does not (afaik) |
# |
Dec 5th 2017, 19:36 |
inoas |
hmic: it is quite a difference as one uses a different memory scope each time |
# |
Dec 5th 2017, 19:36 |
hmic |
inoas: it makes not quite a difference, as both are continuously running php processes |
# |
Dec 5th 2017, 19:35 |
inoas |
WyriHaximus: check the youtube link for running app server stuff ;-) |
# |
Dec 5th 2017, 19:35 |
inoas |
cakephp-queue can help you with the job stuff |
# |
Dec 5th 2017, 19:35 |
WyriHaximus |
It is, and in the long run you'll learn a few new things :) |
# |
Dec 5th 2017, 19:35 |
inoas |
I'd try ajax + cronjob fist |
# |
Dec 5th 2017, 19:35 |
inoas |
maneken: I think running php as a persistent app server is quite advaned |
# |
Dec 5th 2017, 19:34 |
WyriHaximus |
inoas: noticed =D |
# |
Dec 5th 2017, 19:34 |
inoas |
WyriHaximus: your repos are being highlighted ;-) |
# |
Dec 5th 2017, 19:34 |
inoas |
hmic https://www.youtube.com/watch?v=q8wueg2hswA#t=46m :) |
# |
Dec 5th 2017, 19:34 |
WyriHaximus |
sup? |
# |
Dec 5th 2017, 19:33 |
hmic |
and you should look at https://github.com/WyriHaximus/Ratchet to get started quick |
# |
Dec 5th 2017, 19:33 |
hmic |
you will need a pretty specifc server setup, so no shared hosting with apache |
# |
Dec 5th 2017, 19:33 |
inoas |
hmic :p |
# |
Dec 5th 2017, 19:33 |
inoas |
but maybe you just want to learn elixir ;p (sorry) |
# |
Dec 5th 2017, 19:33 |
hmic |
and websockets |
# |
Dec 5th 2017, 19:33 |
hmic |
more specifically cakephp |
# |
Dec 5th 2017, 19:33 |
inoas |
and just run a process every x to check if stuff changed |
# |
Dec 5th 2017, 19:33 |
hmic |
if you want to use php |
# |
Dec 5th 2017, 19:33 |
hmic |
same can be true on the software side |
# |
Dec 5th 2017, 19:32 |
inoas |
instead of websockets you can also use cakphp-queue and ajax |
# |
Dec 5th 2017, 19:32 |
hmic |
if you are bound to any server setup, your options are limited. |
# |
Dec 5th 2017, 19:32 |
hmic |
implemented has 2 parts: the software development and operations part |
# |
Dec 5th 2017, 19:31 |
maneken |
hmic: what would you suggest? I'm looking for something that can be implemented as fast as possible |
# |
Dec 5th 2017, 19:29 |
hmic |
there is a plugin to do that available |
# |
Dec 5th 2017, 19:28 |
hmic |
you can use e.g. ratchet to create a websocket server with php. but it's not a very common thing to do IMHO |
# |
Dec 5th 2017, 19:28 |
maneken |
Should I create one with nodejs? |
# |
Dec 5th 2017, 19:27 |
hmic |
your cakephp app on the server has no contunious running process which is nesseccary for making use of websockets |
# |
Dec 5th 2017, 19:26 |
maneken |
hmic ^ |
# |
Dec 5th 2017, 19:26 |
maneken |
I have a basic CRUD app. I have a Visitors Controller where anonymous users can add visitors (visitors/add) and verified users can see a list of visitors (visitors/list). All I want is the visitors list to automatically be updated when a user creates a new Visitor in visitors/add |