dstew32424 2017-04-26 22:55
浏览 35

如何将Golang纳入您的网站? [关闭]

I have a website that uses django and an sql database. I want to use Golang with my website i don't know any way to incorporate. I want it to accelerate my performance in the website because i have some of my "parts" (ex. Like Login and Follow its a music site) that are very cpu intensive and need to be optimized a better way. Please Help me.

  • 写回答

1条回答 默认 最新

  • doushi7761 2017-04-26 23:16
    关注

    Go is a Programming Language and can be used to write the server for your web application.

    This requires completely replacing django with equivalent code written in Go. You will most possibly need a web framework written on top of Go. For ex. Revel. If you want an analogy, Go is like Python. Revel is like Django.

    This is a big change in your architecture. If performance is the only issue of your working website, you might want to improve the bottlenecks by just using python and django. Django and Python provide a powerful platform that can scale your application to a practically large number of users.

    There is also ways that you can change only small parts of your infrastructure by incorporating Go. Look for micro-services architecture in order to think on those lines.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥15 帮我写一个c++工程