game development – What back-end language should I learn/use for a real time competitive gaming web app?

I hope your day is going well.

I want to make a competitive gaming web app that will hold many players (100,000 to 1,000,000 different users/players) in the same match all at the same time.

What I want from the back-end language:

  • Real-time updates on all user’s screens without needing to refresh
  • Being able to have hundreds of thousands or even millions of players
    playing on the same game (meaning the same exact match) all at
    the same time with the real-time updates from every player on
    everyone’s screen.
  • Good performance on games that have many people playing it all at the
    same time.

I do not care how hard or easy the language is as long as it meets the criteria mentioned above.

Thanks 😊 !

amazon aws – Backend with Python and Postgres, how to choose a cost-effective deployment platform?

I decided to make my first app (possibly with a web interface at some point) and its development is almost complete. However, I’m having a hard time understanding what is the best platform to deploy the backend to.

My backend is written in Python and uses as storage a PostgreSQL database, both with their respective Docker containers.

Here are the platforms I found so far:

  • Amazon AWS services is a mess, there are so many choices with different name and I don’t really understand what I need if I want a hosting to deploy Docker containers for my app.
  • Heroku seems a bit more straightforward, I suppose I could start buying a dyno for the Python backend and the separate Postgres storage.
  • Digital Ocean seems also to offer some products, such as Droplets or App Platform, but I’m not sure which one is the best.

I’ve no prior experience on the matter, so I have a lot of doubts:

  • Do I need a separate hosting for the Python backend and Postgres? Or can I deploy both of the containers on the same hosting? Is it better to keep them separated to be more fault tolerant?
  • What is the best platform to choose without spending too much? How much bandwidth/storage/RAM do I need? How should I know?

I don’t have much budget, I would like not to spend too much (my idea was 50€ max but that seems unlikely) while still offering a good service. Also I would like to release the app for free, but at this point I might be forced to add some monetization system (ads or premium features for instance) in order to at least cover maintenance costs.

I would really appreciate if anyone can give me a nudge in the right direction.

web applications – SPA browser-based routing: external routing table for both frontend (React) and backend (Go) use

I have a Single Page Application that uses React-Router and is served via Go backend. The pre-built static app is accessible at which then uses to load dynamic data.

If a user goes to and clicks the /widget link everything works fine. However, because the routes all use browser-based routing, if a user tries to go directly to the Go backend doesn’t have anything to serve since it knows nothing about the app itself and gives a 404 response. It only knows/cares about the static files to serve and the api.

My simple solution is that the server sets a cookie redirect=/widget for any route that should be there and then redirects to the index route where the app checks for a redirect value and sends to the user to that page if it’s present. Circular but works.

The issue with this approach is that I don’t want to manually add each new route the app uses to both the frontend and backend which leads me to this question.

My thought is to save all of the routes externally in a yaml or json file like:

  - url: "/"
    component: App
    redirect: false

  - url: "/widget"
    component: Widget
    redirect: true

The frontend app would import the file during the build and setup the routes/components accordingly while the backend would import it, check which had redirect set to true, and use a factory function to create handlers for redirection to each of those paths. A couple potential benefits seem like they would be easier configuration of the app routes at high-level and the ability to separate which widgets are accessible directly and which need to go through the main page/login but I feel like there may be negatives I’m not thinking of

General thoughts on this approach? I’ve tried searching for other similar solutions or best practices but feel like I’m missing the right terminology to even find anything and can’t tell if I’m reinventing the wheel

system.xml – How to create a dropdown option as a configuration section to update the options from backend and show it from product details page?

I want to add a select box to the product details page.
Which has several options but this is not a product attribute. It should configure as a global variable.
Admin should able to add new options too from the backend.

I tried the system.xml way and I couldn’t update the new option value for the select box I created.

Can someone help me to do this, please?

Get title parrent page backend

Is het possible to get the name from the parrent page / parrent menu in WordPress?
I tried this

echo get_admin_page_title(get_admin_page_parent());

But this returns only the current page name.

Is there a way to allow admins to enter a credit card payment in the backend of Commerce 2?

If we:

  • Create a new order by filling in customer and product information
  • Save the order
  • Then go to the PAYMENTS tab and click ADD PAYMENT

All we get is the message “There are no reusable payment methods available for the selected gateway.”

We are using but we get the same message with the Test Gateway (on-site).

I’m not sure why we’re getting this message. Is there a way to allow admins to enter a customer’s credit card info to an order via the backend?

Using Haproxy pass-through frontend and nginx proxy_pass directive on backend

How to use proxy_pass rewrite on backend, while having a haproxy pass-through on frontend. Frontend doesn’t terminate SSL and passes all requests to backend.

And on backend having this following config, to rewrite using proxy_pass.

server {
    listen 443 ssl http2 proxy_protocol;
    set_real_ip_from x.x.x.x;
    real_ip_header proxy_protocol;
    location ~ ^/file.js {
        rewrite /file.php?$args break;
        proxy_buffering off;
        proxy_pass https://$server_name:443;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_redirect off;

Currently I’m getting 200 status with a 500 error page on it.

design patterns – Rest API backend and React frontend is MVP?

I’m doing a website that has a React frontend that calls some RESTful API and I would like to know if this is an MVP pattern.

I think that the React application implements the View and the Presenter, while the backend realizes the Model of the website.

I think it’s not MVC because the view isn’t updated by the model directly, but by how the response is handled.

But I’m not sure the pattern is MVP because the View and the Presenter feel kinda blended (in my code at least).

So my question is basically is my website MVP or not, and if not, what pattern is it implementing if any?

css – Outline input elements backend

I try to remove the outline from input elements in the WordPress backend.

What I tried already

input, select{
    -webkit-appearance: none;

I tried also ::active, ::focus, ::hover etc, etc. but the blue line is not removed.
Who can help me with this?

php – WordPress: How do I create a plugin for the post overview in the backend?

I would like to create a plugin, which should add a button for each post in the backend in the post overview section, so that I can click on it and run a database operation referencing to the post title. Elementor for example does that (as shown in the image).

Overview of posts in WordPress backend

Unfortunately I don’t know where to find or search for the area to create something for the backend post overview.

The actual aim was to create a table entry for each post entry. I tried to accomplish this with the use of hooks, but I couldn’t prevent it from firing twice or when updating the post. Other than that, it worked as expected.

add_action('save_post', 'add_workshop_poll_nc');
function add_workshop_poll_nc( $post_id ) {
    global $wpdb;
    //Check to see if user posted first time
    if ( !(wp_is_post_revision($post_id)) || wp_is_post_autosave($post_id)){
        $table_name = 'oc_polls_polls';
        $poll_title = get_the_title($post_id);
                'type'  => 'datePoll',
                'title' => $poll_title,
                'description' => '',
                'owner' => 'admin',
                'created' => 1602851840,
                'expire' => 1604151026,
                'deleted' => 0,
                'access' => 'hidden',
                'anonymous' => 1,
                'full_anonymous' => 0,
                'allow_maybe' => 1,
                'options' => '',
                'settings' => '',
                'vote_limit' => 0,
                'show_results' => 'expired',
                'admin_access' => 1,
                'important' => 0)); 
    remove_action('save_post', 'add_workshop_poll_nc'); //to prevent multiple database entries of same post

That is the reason I would like to do use a manual trigger such as a link/button. These links/buttons should only be visible to a custom post type (workshop).

Can someone give me a hint, how to approach this problem or help me solving it ?

I am new to wordpress/PHP so please be indulgent 🙂