System design for a social network

I'm building a social network Imagine Twitter where people can follow and see posts.

I want to use to create an MVP. I only know Python and JavaScript, hence the backend in Python, the frontend in React.

I will have the following layers:


My plan is to create and save users in Fire base. Seems to be a simple integration. It also seems relatively easy to migrate to a custom system as we grow.

Backend API

How does it work? bottle Sound? I can use it to create Firebase authentication token endpoints for all CRUD. I'm also thinking of using Django. It can do many things right away. The problem with Flask is a lot of work for validation / database models.


I guess it has to be relational to see follower posts, participate in discussions, etc. So my vote is Postgres. I have to create users Table? I'm pretty sure that given the authenticated request, all user information will be passed and I can create all the necessary joins.

So my questions.

  1. Should I write my own Auth bottle / Django and create a user table myself?
  2. Should I use relational DB like Postgres?
  3. Responding is not very good for static URLs. For example, when a new person logs in, I want to create a static page with their profile, e.g.{{username}}. Should I use next.js to pre-render the static content? For SEO etc. visibility. Does a reaction make sense?

45 high PR social bookmarks backlinks for the website. for $ 2

45 high PR social bookmarks backlinks for the website.

Thank you for coming. I am an expert in social media marketing services. I have seen more than 1 year on the market. I have great experience in the online area
Job. Many orders completed experience. I will do real work with the best
Quality for all buyers. If you need any
Kind of SEO and SMM work. Please contact me.

About this service:
Quality of my service: We do not use a fake system so that your profile is secure.
I will also support you after the order has been completed.
Save real money opportunity Perfect temporary work We usually refund money when we can no longer work.The work will begin in the shortest possible time and be completed on time.As always, we offer a safe and promotional service.Immediate start function when I am online.We are the best for quality workWorkflow 100% correctCharacteristics:
High quality SEO social bookmarks.
Receive a report with every single link
Improve the importance of your website in SERPs
Improve your website's visibility and brand awareness
Give your company more credibility

GET – Tai Lopez – Consultant for Digital Social Marketing | Proxies-free

Uploader: imwarrior / Category: IM / Seeders: 1 / Leechers: 2 / Size: 3.47 GB / Snatched: 1x

Tai Lopez – Consultant for digital social marketing


What can we learn from the Digital Social Marketing Consultant?
Are you looking for a side business that has the potential to earn a full-time income even though we can only do the job part-time? The new DSMC program helps us to work towards this. With DSMC, we can easily speak to companies, recommend an agency and be paid 4 to 5 digits when they become customers.

1 – Welcome to DSMC.
2 – The secret price formula.
3 – How to use Cold Email Outreach for appointments.
4 – How to market your value.
5 – How to quickly analyze and evaluate your potential customer's marketing.
6 – 17 Unused high ticket niches.
7-10 big wins.
8 – Joe Soto's email scripts.
9 – Top 2 things that affect sales.
And much more.


Can I customize which image appears when my YouTube channel is shared on social media?

At the moment when I copy and paste my YouTube channel URL into Facebook, the channel icon is shown as a post picture. It would be nice to display a custom image that would look better on large sizes like Facebook posts. Is that possible? Is there a way to customize which image appears when my channel is shared on social media?

Authority backlinks 1000 solid with social signals link juice and PBN blog posts for $ 3

Authority backlinks 1000 solid with social signals Link Juice and PBN blog posts

Hello buyer The SAROWER Level X3 seller with more than 12000 POSITIVE REVIEW offers you a high-quality and powerful full service for you.
Affordable solid authority backlinks for your website, expired domain redirection, buffer site, parasite, web 2.0 blog or video

Get backlinks with solid metrics with low to medium DA / PA and link juice consisting of social signals, PBN blog posts and link directory submissions. Although the metrics here are lower than those you get in our higher-priced services, this is a cost-effective solution if you have a good link building strategy yourself or just outsource backlinks.

Some of the things you will get:

  • 1000+ solid authority backlinks
  • Contain 30+ posts with keywords
  • Mixed DA / PA (low to medium range)
  • PBN Blog Posts (Homepage)
  • Link Directory Submissions (Naked Link)

What do these links mean for you?

If you have a buffer page or a parasite, e.g. For example, a video whose ranking you want to start and that redirects traffic to your main website, you can rate it while you forward the juice to your main website.
In addition, our social signals will make the connections we build even stronger.


  • High authority social signals included on pages with active audience and engagement
  • Live links report for backlinks, partially including live links report for social signals

What makes this service unique?

  • We have set up several of our own PBN networks
  • We change our PBNs frequently so that no footprints are left
  • We have over 1000 blogs in different niches that are SPAM FREE
  • We publish on high quality social media sites, not the usual SPAM commenting method that others use
  • We use our services to evaluate our own products and websites

(tagsToTranslate) Authorize (t) Backlink (t) Fixed (t) Social (t) Signals (t) Juice

High quality 500 SEO social bookmarks, signals and PBN links from established social and PBN blogs for $ 4

What will you get
– 20 different platforms
– Social bookmarks
– Social signals
– Social links for live links
– PBN blog posts
– A total of more than 500 links

What makes this service unique?
We have set up several social media accounts that we control. We have set up several of our own PBN networks. We have over 1000 blogs in different niches that are SPAM FREE. We publish on high quality social media sites, not the usual SPAM commenting method that others use. We use our services to evaluate our own products and websites

by: sarower
Created: –
Category: Video
Seen: 45

I'm going to do Facebook marketing or hunger shopping for $ 10

I'm going to do Facebook marketing or advertising for hungry shoppers

Welcome to my Facebook Marketing or Promotion gig !!

This promotion is aimed at people who want to take their business to the next level.

Do not worry! I am a digital marketing expert with 10 years of experience. I will raise your business

Organic Facebook-hungry shoppers target high quality traffic to increase your company's popularity and sales.

My services:

Facebook-friendly conversion of posts and shares
Professional design to increase the high conversion rate
100% manual posting and sharing with the target group of the Facebook group
Fast delivery on time
As proof, I will provide post links and screenshots

Why will you choose me

Fast and professional advertising service
Exceptional customer service
Fluent in English
Increase engagement and conversion rates
Unlimited revisions
24/7 customer service
100% money back guarantee

After all, I'm here to build a good relationship with my customers that we both will benefit from.

Note: We do not advertise adult products or services or misuse.

Java – System generated social network

On a given social network, the system automatically assigns friends to users, and users cannot add friends of their choice themselves. There are currently N users on the social network, labeled 2 to N + 1.

For every i-th user (where i is between 2 and N + 1), the system has assigned all users who are marked with a multiple of i as friends of the user (if possible).

One day, all users of the social network come together for a meeting and form groups so that every person in a group is a direct friend or a friend of a friend of every other person in this group.

Find the total number of groups.

Input specifications:

Input1: N, which indicates the number of users in the social network

Output specification:
Their function should return the number of groups that can be formed under certain conditions

Example 1:

Input1: 5
Edition: 2nd

Two groups are formed


Example 2:

Entry1: 10
Edition: 3

Three groups are formed:


Proposed solutions

Please optimize my solution. My solution works perfectly, but it doesn't look optimal.

import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;

public class SocialNetwork {

    public static void main(String() args) {
        InputStreamReader r = new InputStreamReader(;
        BufferedReader br = new BufferedReader(r);
        int value = 0;

        try {
            value = Integer.parseInt(br.readLine());
        } catch (IOException e) {

        HashMap> map = new HashMap<>();

        for (int i = 2; i <= value + 1; i++) {

            List list = new ArrayList<>();

            for (int j = 1; j * i <= value + 1; j++) {
                int tempValue = j * i;


                if (i != tempValue) {
                    List addedList = map.get(tempValue);

                    if (addedList == null) {
                        addedList = new ArrayList<>();

                    if (!addedList.contains(i)) {
                        map.put(tempValue, addedList);

            List currList = map.get(i);
            if (currList != null)
                currList = list;

            map.put(i, currList);

        // Iterate through all elements of map

        Iterator>> iterator = map.entrySet().iterator();

        List visitedKeys = new ArrayList<>();

        List> listSet = new ArrayList<>();

        while (iterator.hasNext()) {
            Entry> entry =;
            Integer key = entry.getKey();
            List keyValue = entry.getValue();

            if (visitedKeys.contains(key)) {

            Set setItem = new HashSet<>();
            updateSet(key, keyValue, visitedKeys, map, setItem);


        System.out.println("groups=" + listSet);
        System.out.println("Number of groups=" + listSet.size());

    private static void updateSet(Integer key, List keyValue, List visitedKeys,
            HashMap> map, Set setItem) {

        for (Integer item : keyValue) {

            if (visitedKeys.contains(item)) {

            if (!item.equals(key)) {
                List mapVal = map.get(item);
                if (mapVal != null) {
                    updateSet(item, mapVal, visitedKeys, map, setItem);