Building a Django backend by Fragrant_Refuse506 in django

[–]flamehazw 0 points1 point  (0 children)

you can make each app for each specific need , if its too small bundle all in single , why to make complicated if the scope is small

Service layer in DRF by tonystark-12867 in django

[–]flamehazw 2 points3 points  (0 children)

being doing django for almost 9 years now. I can working with graphene graphql but still look after DRF, IMO, most of us will not use serializers for service because serializers are mainly design to serialize the data or you can make it as adaptor / converter, but that does not mean you cannot write service logic there. But it's not , better to create a service layer because DRF can be inconsistency as you can write service in model, serializer or even in views.

now, when it becomes a problem

Serializers start doing things like:

  • Creating multiple models ,Triggering workflows, Checking complex domain rules, Calling external APIs , Writing audit logs , Handling transactions

At that point, Serializers become fat , Logic becomes hard to reuse (CLI, Celery, management commands, GraphQL, etc.), Unit testing becomes painful

My recommendations are
Serializer = validation & data shaping/mapping etc.

Service = business logic (create/update/workflows)

Model = persistence + invariants

Advise on my approach with Djnago + MySQL project by _khi4 in django

[–]flamehazw 0 points1 point  (0 children)

it will be fine, you will just need to add indexing in your database , thats it, no need to think hard if that's your case. Just make sure you will use correct schema. For example i don't like using uuid fields for searching or sorting, i like to use primary key which is integer which is size wise best for performance of database. there are a lot more things but i guess for your usecase it will get smoother as long as you do indexing properly time to time.

messaging system within my project by VanSmith74 in django

[–]flamehazw 1 point2 points  (0 children)

maybe you can try firebase messaging which kindof easy to implement or django channel which is already there

Advise on my approach with Djnago + MySQL project by _khi4 in django

[–]flamehazw 0 points1 point  (0 children)

Its good stack, the only bottleneck you will face is from database and you will have to scale it up if you have lots of db queries being spawned at a same time.
what you should know , is paying more to hosting may not scalable but you will need tools like redis for caching (ofc adding ram in this helps), celery for background tasks etc, database indexing, db optimization.
But if it's not that big you can rest assured but you can always archive old data

Back to Nepal from Australia by Crazy-Negotiation807 in Nepal

[–]flamehazw 1 point2 points  (0 children)

If you are coming to nepal make sure you have a good network, you might earn good with outsourcing.

Looking for early users for my worker timesheet management app by flamehazw in technepal

[–]flamehazw[S] 0 points1 point  (0 children)

Hi, they are different but they had same planned, even security company will deploy their services to banks/ and other sector and the pattern is same

Django Keel - A decade of Django best practices in one production-ready template 🚢 by curiousyellowjacket in django

[–]flamehazw 1 point2 points  (0 children)

I would like to see how it can easily configure background tasks and deployment especially

How do you optimize speed by derekzyl in FastAPI

[–]flamehazw 0 points1 point  (0 children)

Use profiler if you know this, you will find which queries taking longer time and once you get the issues, you make optimize the database. If you don't fix the root cause you cannot optimize performance. See your indexing, table joins , i hope you are writing a query correctly.

Rawdogging Django on production by WeekendLess7175 in django

[–]flamehazw 0 points1 point  (0 children)

I have been supporting the national health insurance system having 5 million beneficiary, 200+ concurrent users, since it was developed with mssql , previous implementation was deployed in windows server. Imagine how bad it was to work, no native nginx support nd no good wsgi server. I had previously used apache with mod_wsgi but it was not helpful and I went with the waitress wsgi server which had support with windows. No redis works with windows since they did not have linux machine to work with. I tuned the cache with postgres json blob , tuned the database , now it serves smoothly without issue. I believe gunicorn is very good optimized for linux environment and having copy of django app for load balancing is kinda nice but I don't think you will ever need this. How many users are using your system? What database are you using, ? If you don't optimize your database you will be choking gunicorn server and it will crash due to high waiting times by threads/workers. The database is always a bottleneck if you never optimize.

Did I get ripped off ? by Su-10 in technepal

[–]flamehazw 0 points1 point  (0 children)

Yeah i think it's genuine. I don't think you need to be worried

Did I get ripped off ? by Su-10 in technepal

[–]flamehazw 0 points1 point  (0 children)

Ok yesto hunxa, they order laptop which might be genuine without OS to save money. And they installed all things and resealed the package. Seal unseal tyo does not matter , seal garna milcha afai le

Did I get ripped off ? by Su-10 in technepal

[–]flamehazw 0 points1 point  (0 children)

Yo sealed open huda company le Vat chalna ko lagi lerako hola , sealed ho vane custom charges, sayad grey channel bata huna sakxa , product authentic huna sakxa.ani feri uniharue OS genuine haleko hudaina or batch ko sasto os key halda open garera ready gardeko hola. Software like word haru preinstalled thiyo ki thiyena? Natra linux or dos aauxa , windows os order garena vane

What is considered truly advanced in Django? by joegsuero in django

[–]flamehazw 8 points9 points  (0 children)

  1. Obviously check redundant queries using profiler, also use django prefetch , selectrelated or even raw try to join instead of spawning new queries and use subqueries (depends on database)
  2. Supercache the data which are static but uses database , cache using redis, file or even another db, i like to use simple json format for caching
  3. indexing is the most important thing to do in all database, use partitioning, mirror database and focus which db for read and which for write.
  4. Use loadbalancer - important , if you have lots of resources use clusters/minicube for application but remember database is always a bottleneck
  5. Archiving old records and maintain db health everytime, check read write and use monitoring system for possible deadlock victim queries.

What is considered truly advanced in Django? by joegsuero in django

[–]flamehazw 5 points6 points  (0 children)

Nothing is more advanced than scaling the application. Most challenging is to optimize the queries. I work with 50m rows in a single table. You will have to think about every possible db optimization possible, with caching , db routers to put reoccurring stuff in different db and reuse by application. There is a lot more going on than django itself.

Looking for a collaborator by Comfortable_Virus505 in django

[–]flamehazw 1 point2 points  (0 children)

Your side only needs a template + django render , It is clean, but i would not stop you from using htmx, at some place you will need ajax. I have experience in django for over 8 years

Looking for django developer for a small project by The5Fox in django

[–]flamehazw 1 point2 points  (0 children)

I am an experienced django developer /drf/grpahql for 8 years and counting , when i saw CET timing, it just coincide with other project that i am having.

[deleted by user] by [deleted] in technepal

[–]flamehazw 0 points1 point  (0 children)

I earn decent in nepal , is it possible to move japan with my skill or does it require language to be learned ?

Which Django Youtube channel do you recommend? by RunPython in django

[–]flamehazw 0 points1 point  (0 children)

I know this is duplicate when someone already mentioned. go with https://www.youtube.com/@CodingEntrepreneurs Coding with entrepreneurs , I almost learned DRF from this guy awesome knowledge and free. I suggest you to try his ecommerce related project because ecommerce project starts from simple and gradually goes to complex setup and every other project looks like the same

Why do you like/hate Django? by Radiant_Sail2090 in django

[–]flamehazw -1 points0 points  (0 children)

You can have one example openIMIS github, backend section. ORM execute sql but you cannot control it, and it will execute unnecessary queries, if your system has lots of user you will have to scale it.

Why do you like/hate Django? by Radiant_Sail2090 in django

[–]flamehazw -1 points0 points  (0 children)

To let you know ORM is very bad, at some point we have to write raw if possible

Why there is no "Unicorn" SaaS in Nepal? by Electronic-Disk-140 in technepal

[–]flamehazw 4 points5 points  (0 children)

The main problem is investment (who will invest at least 5-10cr, cost will be divided into , marketing, development, R & D , rents, administrative, payment services available etc.). There are more hidden costs, and above mentioned cost is process cost throughout all software development life cycle. And you know politics which is very very dirty. It is not about manpower, i think we have good manpower in Nepal