What is parameter?
Created Nov 21, 2023, 12:41:55 PM

Parameter is attribute of product like name, color, weight, size...

Each parameter can have several parameter values. Those values can be of different types. Based on their values, parameters are divided into following types:

boolean values like true/false, yes/no... stored in parameter_e

New project
Created Jul 26, 2023, 7:19:39 PM

1) setup logging - same format for each application (later logs will be easier to process) 2) setup APM (check out i.e. remotedaemon_com golang app to see more)

What to do:

"es_user": "elastic", "es_pass": "change6", "app_environment": "dev", "apm_server": ""

Writing websocket
Created Jul 8, 2023, 12:46:37 PM

How writing websocket works?

  1. User A is writing message
  2. Websocket data are sent throught WS server
  3. WS Server handles message and sent data to all users on channel
  4. User B receives data message

Format of message sent from User A:

type Message struct {
Response ErrorRFC7807
Created Feb 7, 2023, 8:35:32 PM


always use it to define response from API, for precondition failed responses.


$errors = $validator->validate($website);
        if ($errors->count() > 0) {
            $errorResult = [];
            /** @var ConstraintViolationInterface $error */
Pridanie prekladov
Created Feb 4, 2023, 11:18:53 PM

Preklady pre tabulky:

  1. vytvorim novu tabulky (napr. activityCategory)
  2. vytvorim tabulky (activityCategoryLocale)
  3. vytvorim Proxy triedu v Entity/Proxy
  4. pridam novu sekciu do CategoryTranslateCommand.php
Stripe testing
Created Jan 29, 2023, 11:06:45 AM

stripe card: 4242 4242 4242 4242

cvc: any

date: future

How remote daemon works
Created Jan 16, 2023, 10:14:02 AM

1) API endpoint to download URL, input: websiteUrlID, then this is sent to rabbitmq, which will download URL and store information about downloaded URL to redis / mariadb. Input is array [2312, 31231, 312031], where elements are websiteURLIds, limited to 1000 elements? API is called with limited a

Redis usage
Created Dec 22, 2022, 9:29:03 AM

Redis usage

Redis database What is stored there Where to find
12 Session services.yaml (redis object, passed to RedisSessionHandler)
4 Doctrine Cache cache.yaml
5 PubSub nightfoxy writer command
7 HTML Cache c
Redis websites
Created Dec 17, 2022, 12:18:11 PM

Kluc je website_ Je v nom ulozena kompletna informacia o websites (https statusy, pocet requestov, priemerna dlzka odozvy).

type RedisInfo struct {
    Statuses          map[int]int `json:"statuses"`
    AvgResponseTime   int         `json:"avg_response_time"`
    TotalRequestCount int        
Redis notification
Created Nov 6, 2022, 3:34:08 PM

Used to notify users in "realtime" (now with redis, later with rabbitmq probably).

Structure of data stored in redis:

return [
            'type' => $this->type,
            'userId' => $this->userId,
            'data' => json_encode($this->data)

With key of format